Efficient posix_spawn implementation for Cygwin

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Wed Jan 4 00:20:00 GMT 2012


On Tue, Jan 03, 2012 at 05:43:30PM -0500, Ryan Johnson wrote:
>On 03/01/2012 5:25 PM, dancol@dancol.org wrote:
>> posix_spawn [1] is an optional POSIX facility that allows programs to
>> start other programs without using fork or vfork. I've created an
>> efficient implementation of posix_spawn for Cygwin. The code is available
>> at https://github.com/dcolascione/cygspawn.
>>
>> This library uses Cygwin's nonstandard spawn* family calls in process.h to
>> provide the full suite of posix_spawn* functionality. Implementing
>> posix_spawn in terms of spawn turns out to be non-trivial. Nevertheless,
>> using posix_spawn can improve process startup performance considerably,
>> especially for large programs:
>This probably belongs at cygwin-dev,

No, it really doesn't.  It is just a library that uses cygwin functions.

>but it sounds interesting (especially if it allows less-frequent
>invocation of the rebaseall ritual).

Since the VAST majority of UNIX/linux programs use fork/exec I don't
see how this would really have much of an effect.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list