version 1.87, 2015/04/21 22:21:41 |
version 1.88, 2015/04/24 20:58:44 |
|
|
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) { |
|
|
cfsetospeed(&tio, cfgetospeed(&saved_tio)); |
cfsetospeed(&tio, cfgetospeed(&saved_tio)); |
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); |