mirror of
https://github.com/tmate-io/tmate.git
synced 2025-04-01 19:36:29 +02:00
Set up signal handler earlier so that we don't get zombies, reported by
sobrado@.
This commit is contained in:
parent
ab73997cc5
commit
a5a873dccc
6
client.c
6
client.c
@ -262,6 +262,9 @@ client_main(int argc, char **argv, int flags)
|
|||||||
setproctitle("client (%s)", socket_path);
|
setproctitle("client (%s)", socket_path);
|
||||||
logfile("client");
|
logfile("client");
|
||||||
|
|
||||||
|
/* Establish signal handlers. */
|
||||||
|
set_signals(client_signal);
|
||||||
|
|
||||||
/* Initialize the client socket and start the server. */
|
/* Initialize the client socket and start the server. */
|
||||||
fd = client_connect(socket_path, cmdflags & CMD_STARTSERVER);
|
fd = client_connect(socket_path, cmdflags & CMD_STARTSERVER);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
@ -301,9 +304,6 @@ client_main(int argc, char **argv, int flags)
|
|||||||
tcsetattr(STDIN_FILENO, TCSANOW, &tio);
|
tcsetattr(STDIN_FILENO, TCSANOW, &tio);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Establish signal handlers. */
|
|
||||||
set_signals(client_signal);
|
|
||||||
|
|
||||||
/* Send identify messages. */
|
/* Send identify messages. */
|
||||||
client_send_identify(flags);
|
client_send_identify(flags);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user