diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2008-05-11 23:50:33 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2008-05-11 23:50:33 +0000 |
commit | 0a6f1054c54effa68d99f9a6e57a4915ca1301e9 (patch) | |
tree | 307273516f9cb276babf00957fcf0f074990af97 | |
parent | a0e898e43e82ff99bee249b79aff6b13d872b22d (diff) |
share signal handlers for rthreads. from philip guenther
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 8a048fd5f65..7c741157d81 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.93 2007/10/10 15:53:53 art Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.94 2008/05/11 23:50:32 tedu Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -143,7 +143,7 @@ sys_rfork(struct proc *p, void *v, register_t *retval) flags |= FORK_SHAREVM; #ifdef RTHREADS if (rforkflags & RFTHREAD) - flags |= FORK_THREAD; + flags |= FORK_THREAD | FORK_SIGHAND; #endif return (fork1(p, SIGCHLD, flags, NULL, 0, NULL, NULL, retval, NULL)); |