Module Name: src Committed By: ad Date: Thu Sep 7 19:59:20 UTC 2023
Modified Files: src/lib/libpthread: pthread.c Log Message: raise() has understood threads for a long time, don't reimplment it. To generate a diff of this commit: cvs rdiff -u -r1.182 -r1.183 src/lib/libpthread/pthread.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libpthread/pthread.c diff -u src/lib/libpthread/pthread.c:1.182 src/lib/libpthread/pthread.c:1.183 --- src/lib/libpthread/pthread.c:1.182 Fri Mar 24 14:18:18 2023 +++ src/lib/libpthread/pthread.c Thu Sep 7 19:59:20 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: pthread.c,v 1.182 2023/03/24 14:18:18 joerg Exp $ */ +/* $NetBSD: pthread.c,v 1.183 2023/09/07 19:59:20 ad Exp $ */ /*- * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008, 2020 @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread.c,v 1.182 2023/03/24 14:18:18 joerg Exp $"); +__RCSID("$NetBSD: pthread.c,v 1.183 2023/09/07 19:59:20 ad Exp $"); #define __EXPOSE_STACK 1 @@ -1125,7 +1125,7 @@ pthread__errorfunc(const char *file, int syslog(LOG_DEBUG | LOG_USER, "%s", buf); if (pthread__diagassert & DIAGASSERT_ABORT) { - (void)_lwp_kill(_lwp_self(), SIGABRT); + (void)raise(SIGABRT); _exit(1); } }