Skip to content

Commit bd7b371

Browse files
BuGlessRBgitster
authored andcommitted
git-daemon: SysV needs the signal handler reinstated.
Fixes the bug on (amongst others) Solaris that only the first child ever is reaped. Signed-off-by: Stephen R. van den Berg <srb@cuci.nl> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 04c6e9e commit bd7b371

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

daemon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ static void child_handler(int signo)
794794
}
795795
break;
796796
}
797+
signal(SIGCHLD, child_handler);
797798
}
798799

799800
static int set_reuse_addr(int sockfd)

0 commit comments

Comments
 (0)