diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-12-08 14:51:37 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-12-08 14:51:37 +0000 |
commit | f12d711b8ff30cbb7e08bb32d88af46cc64c0769 (patch) | |
tree | 5fd6e5a28182f82c323032d9dce6aa32a60b622b /lib/libpthread/uthread/uthread_init.c | |
parent | 203c9a03b47df77947e1b30e3a939aa45a9a35e0 (diff) |
Partially sync with FreeBSD; mostly pthread_cancel(3) related changes.
make includes is needed in case you want to play.
Diffstat (limited to 'lib/libpthread/uthread/uthread_init.c')
-rw-r--r-- | lib/libpthread/uthread/uthread_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_init.c b/lib/libpthread/uthread/uthread_init.c index caf5b9e9989..a0aaf8e8964 100644 --- a/lib/libpthread/uthread/uthread_init.c +++ b/lib/libpthread/uthread/uthread_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_init.c,v 1.16 2001/09/04 22:17:45 fgsch Exp $ */ +/* $OpenBSD: uthread_init.c,v 1.17 2001/12/08 14:51:36 fgsch Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -175,8 +175,8 @@ _thread_init(void) _thread_initial->magic = PTHREAD_MAGIC; /* Set the initial cancel state */ - _thread_initial->cancelstate = PTHREAD_CANCEL_ENABLE; - _thread_initial->canceltype = PTHREAD_CANCEL_DEFERRED; + _thread_initial->cancelflags = PTHREAD_CANCEL_ENABLE | + PTHREAD_CANCEL_DEFERRED; /* Default the priority of the initial thread: */ _thread_initial->base_priority = PTHREAD_DEFAULT_PRIORITY; |