Message325630
| Author |
pablogsal |
| Recipients |
gregory.p.smith, pablogsal, ronaldoussoren, serhiy.storchaka, vstinner |
| Date |
2018年09月18日.11:27:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1537270020.68.0.956365154283.issue34663@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The documentation says:
The child process is created using vfork(2) instead of fork(2) when
either of the following is true:
* the spawn-flags element of the attributes object pointed to by
attrp contains the GNU-specific flag POSIX_SPAWN_USEVFORK; or
* file_actions is NULL and the spawn-flags element of the attributes
object pointed to by attrp does not contain
POSIX_SPAWN_SETSIGMASK, POSIX_SPAWN_SETSIGDEF,
POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER,
POSIX_SPAWN_SETPGROUP, or POSIX_SPAWN_RESETIDS.
So using the flag is necessary if you want to force the use of vfork when passing any of the flags specified in the second point. |
|