freebsd-ports/net/nbd-server/files/patch-nbd-server.c
Alejandro Pulver dadcf8c0a7 - 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)
2006-11-08 02:19:43 +00:00

18 lines
546 B
C

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);