git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
AWAndrew Wason <rectalogic@rectalogic.com>
Date
Aug 8, 2008, 17:43 UTC
Message-ID
<loom.20080808T174216-369@post.gmane.org>

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@rectalogic.com>
---
 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
Message 1 of 1 in “Reinstate SIGCHILD handler, signals on Solaris are reset when handled”
  1. Reinstate SIGCHILD handler, signals on Solaris are reset when handledAndrew Wason, Aug 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.