Date: Sun, 26 Sep 2004 06:50:15 +0000 (UTC) From: Daniel Eischen <deischen@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libpthread pthread.mapsrc/lib/libpthread/thread Makefile.inc thr_execve.c Message-ID: <200409260650.i8Q6oFXn089930@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409260650.i8Q6oFXn089930>
