From eb36563f8987748902790de96a7bf915d9424ceb Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 10 Jul 2023 12:00:08 +0000 Subject: [PATCH] It should no longer be necessary to ignore SIGCHLD because it is now blocked around daemon(), and doing so causes trouble with newer libevent (it cannot restore the original handler). Reported by Azat Khuzhin in GitHub issue 3626. --- usr.bin/tmux/client.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c index 16373e5d3d6..f8195090cbc 100644 --- a/usr.bin/tmux/client.c +++ b/usr.bin/tmux/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.160 2023/07/10 09:35:46 nicm Exp $ */ +/* $OpenBSD: client.c,v 1.161 2023/07/10 12:00:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -246,9 +246,6 @@ client_main(struct event_base *base, int argc, char **argv, uint64_t flags, u_int ncaps = 0; struct args_value *values; - /* Ignore SIGCHLD now or daemon() in the server will leave a zombie. */ - signal(SIGCHLD, SIG_IGN); - /* Set up the initial command. */ if (shell_command != NULL) { msg = MSG_SHELL; -- 2.20.1