Date: Thu, 12 Jul 2007 16:10:10 GMT From: "Andrey Sverdlichenko" <blaze@ruddy.ru> To: freebsd-threads@FreeBSD.org Subject: Re: threads/83914: [libc] popen() doesn't work in static threaded programs. Message-ID: <200707121610.l6CGAA69063631@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/83914; it has been noted by GNATS. From: "Andrey Sverdlichenko" <blaze@ruddy.ru> To: bug-followup@freebsd.org, phk@critter.freebsd.dk Cc: Subject: Re: threads/83914: [libc] popen() doesn't work in static threaded programs. Date: Thu, 12 Jul 2007 19:41:27 +0400 Same problem exists in FreeBSD 6.2-RELEASE. Looks like fork() makes a call to _kse_single_thread(), which set curthread->attr.flags |=3D PTHREAD_SCOPE_SYSTEM But in _execve() this flag is gone, so instead of __sys_execve() call to kse_thr_interrupt() is made and in-kernel check for P_SA fails.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707121610.l6CGAA69063631>