delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/03/17:47:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4F038562.5080606@dancol.org>
Date: Tue, 03 Jan 2012 14:46:58 -0800
From: Daniel Colascione <dancol AT dancol DOT org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Efficient posix_spawn implementation for Cygwin
References: <2b113761fca8acd2a86179e108c83c6a DOT squirrel AT dancol DOT org> <4F038492 DOT 60106 AT cs DOT utoronto DOT ca>
In-Reply-To: <4F038492.60106@cs.utoronto.ca>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 1/3/2012 2:43 PM, Ryan Johnson wrote:
> On 03/01/2012 5:25 PM, dancol AT dancol DOT 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, but it sounds interesting
> (especially if it allows less-frequent invocation of the rebaseall ritual).

This code is a user library.  It doesn't require anything not already in
cygwin1.dll.  While it'd be _better_ to integrate this functionality
into the core, of course, doing so isn't required to make the feature
work: that's why I posted to this list.

> However, you should check out the copyright assignment requirements [2]
> if you want the code to make it upstream.

Of course I'll assign copyright if the code makes it upstream in some form.

Thanks,
Daniel Colascione

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019