version 1.217, 2004/06/17 23:56:57 |
version 1.218, 2004/06/18 10:40:19 |
|
|
if ((cp = getenv("TERM")) == NULL) |
if ((cp = getenv("TERM")) == NULL) |
cp = ""; |
cp = ""; |
|
|
signal(SIGINT, control_client_sighandler); |
|
signal(SIGTERM, control_client_sighandler); |
|
signal(SIGWINCH, control_client_sigrelay); |
|
|
|
buffer_init(&m); |
buffer_init(&m); |
|
|
/* Get PID of controlee */ |
/* Get PID of controlee */ |
|
|
if (buffer_get_char(&m) != 0) |
if (buffer_get_char(&m) != 0) |
fatal("%s: master returned error", __func__); |
fatal("%s: master returned error", __func__); |
buffer_free(&m); |
buffer_free(&m); |
|
|
|
signal(SIGINT, control_client_sighandler); |
|
signal(SIGTERM, control_client_sighandler); |
|
signal(SIGWINCH, control_client_sigrelay); |
|
|
if (tty_flag) |
if (tty_flag) |
enter_raw_mode(); |
enter_raw_mode(); |