version 1.56, 2015/12/03 17:00:18 |
version 1.57, 2015/12/26 07:46:03 |
|
|
mm_send_fd(fd, STDERR_FILENO) == -1) |
mm_send_fd(fd, STDERR_FILENO) == -1) |
fatal("%s: send fds failed", __func__); |
fatal("%s: send fds failed", __func__); |
|
|
if (pledge("stdio proc tty", NULL) == -1) |
|
fatal("%s pledge(): %s", __func__, strerror(errno)); |
|
|
|
debug3("%s: session request sent", __func__); |
debug3("%s: session request sent", __func__); |
|
|
/* Read their reply */ |
/* Read their reply */ |
|
|
} |
} |
muxclient_request_id++; |
muxclient_request_id++; |
|
|
|
if (pledge("stdio proc tty", NULL) == -1) |
|
fatal("%s pledge(): %s", __func__, strerror(errno)); |
|
|
signal(SIGHUP, control_client_sighandler); |
signal(SIGHUP, control_client_sighandler); |
signal(SIGINT, control_client_sighandler); |
signal(SIGINT, control_client_sighandler); |
signal(SIGTERM, control_client_sighandler); |
signal(SIGTERM, control_client_sighandler); |
|
|
return; |
return; |
} |
} |
set_nonblock(sock); |
set_nonblock(sock); |
|
|
if (pledge("stdio sendfd proc tty", NULL) == -1) |
|
fatal("%s pledge(): %s", __func__, strerror(errno)); |
|
|
|
if (mux_client_hello_exchange(sock) != 0) { |
if (mux_client_hello_exchange(sock) != 0) { |
error("%s: master hello exchange failed", __func__); |
error("%s: master hello exchange failed", __func__); |