From b3beb928b4139340d5e7a74823701585eb406485 Mon Sep 17 00:00:00 2001 From: alepulver Date: Wed, 8 Nov 2006 02:19:43 +0000 Subject: - Downgrade to 2.8.5. - Bump PORTEPOCH. - Submitter takes maintainership. PR: ports/103673 Submitted by: Heinrich Rebehn Approved by: Christian Laursen (maintainer) --- net/nbd-server/files/patch-nbd-server.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 net/nbd-server/files/patch-nbd-server.c (limited to 'net/nbd-server/files') diff --git a/net/nbd-server/files/patch-nbd-server.c b/net/nbd-server/files/patch-nbd-server.c new file mode 100644 index 000000000000..10f840e6b9fc --- /dev/null +++ b/net/nbd-server/files/patch-nbd-server.c @@ -0,0 +1,18 @@ +diff -urN nbd-2.8.3.orig/nbd-server.c nbd-2.8.3/nbd-server.c +--- nbd-2.8.3.orig/nbd-server.c Thu Dec 22 21:37:20 2005 ++++ nbd-server.c Sun Jan 8 16:45:30 2006 +@@ -363,12 +363,12 @@ + * is severely wrong) + **/ + void sigchld_handler(int s) { +- int* status=NULL; ++ int status; + int* i; + pid_t pid; + int done=0; + +- while(!done && (pid=wait(status)) > 0) { ++ while(!done && (pid=wait(&status)) > 0) { + if(WIFEXITED(status)) { + msg3(LOG_INFO, "Child exited with %d", WEXITSTATUS(status)); + msg3(LOG_INFO, "pid is %d", pid); -- cgit