G. Branden Robinson wrote: > > This can be simplified to a single implementation for both, based on > > posix_spawn. Gnulib implements posix_spawn also for native Windows; > > see https://savannah.gnu.org/news/?id=10219 . > > To make sure I understand clearly, do you expect gnulib's posix_spawn to > resolve _both_ of the above issues (notes 1 and 2)?
No, only note 2. posix_spawn is faster than fork()+exec() on Linux/glibc, because some effort has been made to optimize that. I'm not aware of a similar effort for Cygwin, and won't do it myself either. > I'll bet Gauis Mulley would have been thrilled to have gnulib's > posix_spawn way back then. :) Me too :) posix_spawn was invented in 2001. But it took a long time: Implementing posix_spawn for native Windows was like climbing a steep hill. Bruno