diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-12-29 23:21:09 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-12-29 23:21:09 +0000 |
commit | 8d750bfb1bf0228b6e58e834f4842c7080398d13 (patch) | |
tree | e2ab7b024b94d440af7be0888fe6e9a4498d59b5 /lib/libpthread/thread/thr_create.c | |
parent | 2d0145273e128a3db5439ade8d7f54ab879fffef (diff) | |
download | FreeBSD-src-8d750bfb1bf0228b6e58e834f4842c7080398d13.zip FreeBSD-src-8d750bfb1bf0228b6e58e834f4842c7080398d13.tar.gz |
Implement sigaltstack() as per-threaded. Current only scope process thread
is supported, for scope system process, kernel signal bits need to be
changed.
Reviewed by: deischen
Tested on : i386 amd64 ia64
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
-rw-r--r-- | lib/libpthread/thread/thr_create.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c index eef5806..b82f1809 100644 --- a/lib/libpthread/thread/thr_create.c +++ b/lib/libpthread/thread/thr_create.c @@ -252,6 +252,9 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, sigemptyset(&new_thread->sigpend); new_thread->check_pending = 0; new_thread->locklevel = 0; + new_thread->sigstk.ss_sp = 0; + new_thread->sigstk.ss_size = 0; + new_thread->sigstk.ss_flags = SS_DISABLE; if (new_thread->attr.suspend == THR_CREATE_SUSPENDED) { new_thread->state = PS_SUSPENDED; |