This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/10311] clone(CLONE_VM) fails with pthread_getattr_np on i386
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 18 Sep 2018 13:01:37 +0000
- Subject: [Bug nptl/10311] clone(CLONE_VM) fails with pthread_getattr_np on i386
- Auto-submitted: auto-generated
- References: <bug-10311-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=10311
--- Comment #17 from Rich Felker <bugdal at aerifal dot cx> ---
CDPATH is only processed if the argument does not begin with /; I'm assuming
you would pass an absolute pathname.
Normally you would also just assume sh is in the PATH, and that it at least
minimally resembles a POSIX shell, and use posix_spawnp. For specialized needs
like suid of course it would make sense to use an absolute pathname and a
specialized helper program.
The shell can perform file descriptor closing if you want (exec %d<&-). I'm in
the "closeall is a bogus operation" camp but of course this is controversial.
--
You are receiving this mail because:
You are on the CC list for the bug.