cvs commit: src/lib/libpthread pthread.mapsrc/lib/libpthread/thread
Makefile.inc thr_execve.c
Daniel Eischen
deischen at FreeBSD.org
Sat Sep 25 23:50:16 PDT 2004
deischen 2004-09-26 06:50:15 UTC
FreeBSD src repository
Modified files:
lib/libpthread pthread.map
lib/libpthread/thread Makefile.inc
Added files:
lib/libpthread/thread thr_execve.c
Log:
Add a wrapper for execve(). The exec'd process must be started with
the signal mask and pending signals of the calling thread. These
are stored in userland in libpthread.
There is a small race condition in this patch which could cause
problems if a signal arrives after setting the (kernel) signal
mask and before exec'ing. The thread's set of pending signals
also are not yet installed in the exec'd process. Both of these
will be corrected with the addition of a special syscall.
Reported & Tested by: Joost Bekkers <joost at jodocus dot org>
Reviewed by: julian, davidxu
Revision Changes Path
1.13 +2 -0 src/lib/libpthread/pthread.map
1.49 +1 -0 src/lib/libpthread/thread/Makefile.inc
1.1 +68 -0 src/lib/libpthread/thread/thr_execve.c (new)
More information about the cvs-src
mailing list