posix_spawnp()
Felipe Gasper
felipe at felipegasper.com
Sat Jan 9 21:25:21 EST 2021
Hello,
I’m playing with posix_spawnp() and see that it seems to vary a bit from the documentation.
If I do:
-----
posix_spawnp( &cpid, path, NULL, NULL, argv, environ );
-----
… I’m seeing, for example, that a fork/exec happens rather than vfork. Going by the doc, it seems like vfork is supposed to be the default unless the call requests something to happen between the fork and exec … which doesn’t seem to be the case with the above.
Also, the doc references a POSIX_SPAWN_USEVFORK constant, but where is this defined? I’m bringing in spawn.h, but the compiler says the constant is unrecognized.
Also, where is the man page for posix_spawnattr_init(3)? I have the man page for posix_spawn but not for posix_spawnattr_init … which seems a bit odd.
Thank you!
cheers,
-Felipe Gasper
Mississauga, Ontario
More information about the linux-rpi-kernel
mailing list