From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2960 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: proposed popen replacement using posix_spawn Date: Sat, 23 Mar 2013 21:40:17 -0400 Message-ID: <20130324014017.GW20323@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1364089228 27214 80.91.229.3 (24 Mar 2013 01:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Mar 2013 01:40:28 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2961-gllmg-musl=m.gmane.org@lists.openwall.com Sun Mar 24 02:40:54 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UJZva-0000q6-4M for gllmg-musl@plane.gmane.org; Sun, 24 Mar 2013 02:40:54 +0100 Original-Received: (qmail 7632 invoked by uid 550); 24 Mar 2013 01:40:29 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7624 invoked from network); 24 Mar 2013 01:40:29 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2960 Archived-At: Hi all, I've rewritten popen using posix_spawn and, based on minimal testing, it seems to be working. Please take a look and let me know if you see any issues with it; if I don't hear any problems soon I'll probably commit and fix bugs later if necessary. The important corner cases seem to be: - fd exhaustion - memory exhaustion - cases where stdio and/or stdout is closed prior to popen Rich