-/* $OpenBSD: client.c,v 1.87 2015/04/21 22:21:41 nicm Exp $ */
+/* $OpenBSD: client.c,v 1.88 2015/04/24 20:58:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
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) {
tcsetattr(STDIN_FILENO, TCSANOW, &tio);
}
- /* Establish signal handlers. */
- set_signals(client_signal);
-
/* Send identify messages. */
client_send_identify(flags);