diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-27 19:42:25 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-27 19:42:25 +0000 |
commit | c84c43b4dd4a0b4fd392f5b5171ce683234649e4 (patch) | |
tree | 03b0926a8faf866bdf224f37e8957ad44a3d760e /sys/kern/init_sysent.c | |
parent | a950c799236bacf77b94096700b5e5489793953c (diff) |
Change threxit() to take a pointer to a pid_t to zero out from the
kernel so that librthread can detect when a thread is completely
done with its stack without need a kqueue. The dying thread moves
itself to a GC list, other threads scan the GC list on pthread_create()
and pthread_join() and free the stack and handle once the thread's
thread id is zeroed.
"get it in" deraadt@, tedu@, cheers by others
Diffstat (limited to 'sys/kern/init_sysent.c')
-rw-r--r-- | sys/kern/init_sysent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 57e5610efa9..c8f844ab9b6 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_sysent.c,v 1.107 2009/06/15 17:31:49 deraadt Exp $ */ +/* $OpenBSD: init_sysent.c,v 1.108 2009/11/27 19:42:24 guenther Exp $ */ /* * System call switch table. |