aboutsummaryrefslogtreecommitdiffstats
path: root/net/nbd-server/files
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2006-11-08 10:19:43 +0800
committeralepulver <alepulver@FreeBSD.org>2006-11-08 10:19:43 +0800
commitb3beb928b4139340d5e7a74823701585eb406485 (patch)
treebfb5d1512581054815d4892ee99d63bd4440e591 /net/nbd-server/files
parent10dab8daa52ea9da08b13b1c8a9ee23384d5542e (diff)
downloadfreebsd-ports-gnome-b3beb928b4139340d5e7a74823701585eb406485.tar.gz
freebsd-ports-gnome-b3beb928b4139340d5e7a74823701585eb406485.tar.zst
freebsd-ports-gnome-b3beb928b4139340d5e7a74823701585eb406485.zip
- Downgrade to 2.8.5.
- Bump PORTEPOCH. - Submitter takes maintainership. PR: ports/103673 Submitted by: Heinrich Rebehn <rebehn@ant.uni-bremen.de> Approved by: Christian Laursen <xi@borderworlds.dk> (maintainer)
Diffstat (limited to 'net/nbd-server/files')
-rw-r--r--net/nbd-server/files/patch-nbd-server.c18
1 files changed, 18 insertions, 0 deletions
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);