From f12d711b8ff30cbb7e08bb32d88af46cc64c0769 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Sat, 8 Dec 2001 14:51:37 +0000 Subject: Partially sync with FreeBSD; mostly pthread_cancel(3) related changes. make includes is needed in case you want to play. --- lib/libpthread/uthread/uthread_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libpthread/uthread/uthread_init.c') 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 * 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; -- cgit v1.2.3