openbsd-ports/devel/pth/patches/patch-pthread_c
brad a9434885b2 patches to add thread-safe usleep() soft syscall wrapper.
--
From: vedge <vedge2@vedge.com.ar>
2001-05-24 00:07:13 +00:00

17 lines
390 B
Plaintext

$OpenBSD: patch-pthread_c,v 1.1 2001/05/24 00:07:15 brad Exp $
--- pthread.c.orig Mon May 21 11:19:33 2001
+++ pthread.c Mon May 21 11:21:18 2001
@@ -1057,6 +1057,12 @@
return pth_sleep(sec);
}
+int __pthread_usleep(unsigned int sec)
+{
+ pthread_initialize();
+ return pth_usleep(sec);
+}
+
int __pthread_sigwait(const sigset_t *set, int *sig)
{
pthread_initialize();