public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* posix_spawn and vfork
@ 2019-05-02 12:18 Florian Weimer
  2019-05-02 13:22 ` Adhemerval Zanella
  0 siblings, 1 reply; 10+ messages in thread
From: Florian Weimer @ 2019-05-02 12:18 UTC (permalink / raw)
  To: libc-alpha; +Cc: Adhemerval Zanella

Why do we use clone instead of vfork in posix_spawn?

I think we could use vfork and a call to a separate function for the
subprocess code, as a compiler barrier, and therefore avoiding stack
clobbering issues.

As a result, we can reuse the existing stack and would not have to
allocate a new one.

If this reasoning is incorrect, I'll gladly write up the explanation as
a new comment for sysdeps/unix/sysv/linux/spawni.c.

Thanks,
Florian

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-05-07 13:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-02 12:18 posix_spawn and vfork Florian Weimer
2019-05-02 13:22 ` Adhemerval Zanella
2019-05-04  9:07   ` Florian Weimer
2019-05-04 15:59     ` Paul Eggert
2019-05-06 12:41       ` Adhemerval Zanella
2019-05-06 12:50         ` Florian Weimer
2019-05-06 19:58           ` Adhemerval Zanella
2019-05-07  8:51             ` Florian Weimer
2019-05-07 13:32               ` Adhemerval Zanella
2019-05-06 12:34     ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).