diff options
author | schmonz <schmonz@pkgsrc.org> | 2005-11-21 05:37:36 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2005-11-21 05:37:36 +0000 |
commit | f8a276d8d40a43608d72ddc5a8ae682f8f97a8c8 (patch) | |
tree | 440b937b2c570746e4365726e6c7b8d4ba1f2539 /devel/bglibs/patches | |
parent | 685887f5257361dab9fc0f5cf8ed594ec3418d15 (diff) | |
download | pkgsrc-f8a276d8d40a43608d72ddc5a8ae682f8f97a8c8.tar.gz |
Add patch from author to fix the selfpipe test under some makes
(at least the one in SuSE Linux 9.2). Bump PKGREVISION.
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(); |