summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_fork.c
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-05-07 18:07:29 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-05-07 18:07:29 +0000
commit3b26be6ae163771679f086bb3426661ba369cb27 (patch)
treee1588d1901be2ac4c48004bee51340074edfeca8 /lib/libpthread/thread/thr_fork.c
parenta66173abd23d53097fc2652627b8b370246f7935 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_fork.c')
-rw-r--r--lib/libpthread/thread/thr_fork.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libpthread/thread/thr_fork.c b/lib/libpthread/thread/thr_fork.c
index a2aabbe149ba..4437d886a80e 100644
--- a/lib/libpthread/thread/thr_fork.c
+++ b/lib/libpthread/thread/thr_fork.c
@@ -32,7 +32,6 @@
* $FreeBSD$
*/
#include <errno.h>
-#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
@@ -113,16 +112,7 @@ _fork(void)
else if (_pq_init(&_readyq) != 0) {
/* Abort this application: */
PANIC("Cannot initialize priority ready queue.");
- } else if ((_thread_sigstack.ss_sp == NULL) &&
- ((_thread_sigstack.ss_sp = malloc(SIGSTKSZ)) == NULL))
- PANIC("Unable to allocate alternate signal stack");
- else {
- /* Install the alternate signal stack: */
- _thread_sigstack.ss_size = SIGSTKSZ;
- _thread_sigstack.ss_flags = 0;
- if (__sys_sigaltstack(&_thread_sigstack, NULL) != 0)
- PANIC("Unable to install alternate signal stack");
-
+ } else {
/*
* Enter a loop to remove all threads other than
* the running thread from the thread list: