[PATCH] Reinstate SIGCHILD handler, signals on Solaris are reset when handled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



git-daemon only reaps the first forked child on Solaris. Solaris signal handlers
have to be reset each time the signal is handled.


Signed-off-by: Andrew Wason <rectalogic@xxxxxxxxxxxxxx>
---
 daemon.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/daemon.c b/daemon.c
index 4540e8d..47ad8ab 100644
--- a/daemon.c
+++ b/daemon.c
@@ -794,6 +794,8 @@ static void child_handler(int signo)
 		}
 		break;
 	}
+	/* Signal handlers must be reinstated on Solaris */
+	signal(SIGCHLD, child_handler);
 }
 
 static int set_reuse_addr(int sockfd)
-- 
1.5.6.2



--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux