diff options
author | deischen <deischen@FreeBSD.org> | 2004-09-26 06:50:15 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2004-09-26 06:50:15 +0000 |
commit | e06ce725da02a436965fd3a72c115ec7dee8d28e (patch) | |
tree | 5c4e6bda003876da80684c748cc264b78b4795a2 /lib/libpthread/pthread.map | |
parent | 266d410b93ab1a0dab23752b4186f15cf9d1d0f2 (diff) | |
download | FreeBSD-src-e06ce725da02a436965fd3a72c115ec7dee8d28e.zip FreeBSD-src-e06ce725da02a436965fd3a72c115ec7dee8d28e.tar.gz |
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
Diffstat (limited to 'lib/libpthread/pthread.map')
-rw-r--r-- | lib/libpthread/pthread.map | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpthread/pthread.map b/lib/libpthread/pthread.map index bb04272..4d9110e 100644 --- a/lib/libpthread/pthread.map +++ b/lib/libpthread/pthread.map @@ -25,6 +25,7 @@ global: __write; __writev; _aio_suspend; + _execve; _fork; _nanosleep; _pause; @@ -176,6 +177,7 @@ global: close; connect; creat; + execve; fcntl; fork; fsync; |