diff options
Diffstat (limited to 'devel/bglibs/patches')
-rw-r--r-- | devel/bglibs/patches/patch-aa | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/bglibs/patches/patch-aa b/devel/bglibs/patches/patch-aa new file mode 100644 index 00000000000..20717b81ab0 --- /dev/null +++ b/devel/bglibs/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.4 2005/11/21 05:37:36 schmonz Exp $ + +--- unix/selfpipe.c.orig 2005-08-23 14:23:05.000000000 -0400 ++++ unix/selfpipe.c +@@ -75,17 +75,18 @@ MAIN + { + int buf; + int fd = selfpipe_init(); ++ pid_t pid = getpid(); + puti("FD[0] >= 0", fds[0] >= 0); + puti("FD[1] >= 0", fds[1] >= 0); + puti("FD[0] != FD[1]", fds[0] != fds[1]); + puti("Returned FD == FD[0]", fd == fds[0]); + puti("read before SIGCHLD", read(fd, &buf, sizeof buf)); + puti("errno is EAGAIN", errno == EAGAIN); +- kill(0, SIGCHLD); ++ kill(pid, SIGCHLD); + puti("read after SIGCHLD", read(fd, &buf, sizeof buf)); + puti("second read", read(fd, &buf, sizeof buf)); +- kill(0, SIGCHLD); +- kill(0, SIGCHLD); ++ kill(pid, SIGCHLD); ++ kill(pid, SIGCHLD); + puti("read after two SIGCHLDs", read(fd, &buf, sizeof buf)); + puti("second read", read(fd, &buf, sizeof buf)); + selfpipe_close(); |