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

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4F038492.60106@cs.utoronto.ca>
Date: Tue, 03 Jan 2012 17:43:30 -0500
From: Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
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>
In-Reply-To: <2b113761fca8acd2a86179e108c83c6a.squirrel@dancol.org>
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 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).

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

[2] http://cygwin.com/contrib.html

Regards,
Ryan


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