diff options
author | 2001-12-08 14:51:36 +0000 | |
---|---|---|
committer | 2001-12-08 14:51:36 +0000 | |
commit | 6ac0f2e9f3ee24fce17e680ea1180cafb1eb927f (patch) | |
tree | 2065bacd309ad7857cf9e749ef1ef895538d91be /lib/libpthread/uthread/uthread_init.c | |
parent | style: Use queue.h macro's for list traversal, convert several (&thing)->foo (diff) | |
download | wireguard-openbsd-6ac0f2e9f3ee24fce17e680ea1180cafb1eb927f.tar.xz wireguard-openbsd-6ac0f2e9f3ee24fce17e680ea1180cafb1eb927f.zip |
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; |