diff options
author | nicm <nicm> | 2015-04-24 20:58:44 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-24 20:58:44 +0000 |
commit | a5a873dcccaabd55dbb0ad32abafbf1049316392 (patch) | |
tree | 6529b9eaa4826d2aff32245c103078a86fcec0db /client.c | |
parent | ab73997cc5bd652370beef93db5fca439448734a (diff) |
Set up signal handler earlier so that we don't get zombies, reported by
sobrado@.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -262,6 +262,9 @@ client_main(int argc, char **argv, int flags) setproctitle("client (%s)", socket_path); logfile("client"); + /* Establish signal handlers. */ + set_signals(client_signal); + /* Initialize the client socket and start the server. */ fd = client_connect(socket_path, cmdflags & CMD_STARTSERVER); if (fd == -1) { @@ -301,9 +304,6 @@ client_main(int argc, char **argv, int flags) tcsetattr(STDIN_FILENO, TCSANOW, &tio); } - /* Establish signal handlers. */ - set_signals(client_signal); - /* Send identify messages. */ client_send_identify(flags); |