From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8911 invoked by alias); 6 Dec 2014 02:52:40 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 8775 invoked by uid 48); 6 Dec 2014 02:52:13 -0000 From: "bugdal at aerifal dot cx" To: glibc-bugs@sourceware.org Subject: [Bug libc/17405] Implement posix_spawn_file_actions_addchdir_np, posix_spawn_file_actions_addfchdir_np Date: Sat, 06 Dec 2014 02:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg00063.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17405 Rich Felker changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugdal at aerifal dot cx --- Comment #2 from Rich Felker --- Carlos, what need do you see for new kernel features? I think userspace posix_spawn is already perfectly possible without fork (i.e. using CLONE_VM to avoid the cost of fork), even with file actions and spawnattr features. I would also like to see support for setsid (needed for implementing terminal emulators/multiplexers and things like sshd using posix_spawn rather than fork+exec to run the program on the new pty) and possibly rlimits. The latter was proposed for inclusion in POSIX but Eric Blake rightfully noted that an implementation is needed first. I'd like to work out a list of things that should be added to posix_spawn, get them in glibc (and in musl, where I'm getting requests for them), and then propose them for standardization. So far we have: File actions: chdir/fchdir Flags: setsid Other: setrlimit (requires some sort of list of limits to set) -- You are receiving this mail because: You are on the CC list for the bug.