version 1.41, 2010/06/05 16:47:11 |
version 1.42, 2010/06/28 22:10:42 |
|
|
|
|
if (cmdflags & CMD_SENDENVIRON) |
if (cmdflags & CMD_SENDENVIRON) |
client_send_environ(); |
client_send_environ(); |
if (isatty(STDIN_FILENO)) |
client_send_identify(flags); |
client_send_identify(flags); |
|
|
|
return (&client_ibuf); |
return (&client_ibuf); |
|
|
|
|
fatal("dup failed"); |
fatal("dup failed"); |
imsg_compose(&client_ibuf, |
imsg_compose(&client_ibuf, |
MSG_IDENTIFY, PROTOCOL_VERSION, -1, fd, &data, sizeof data); |
MSG_IDENTIFY, PROTOCOL_VERSION, -1, fd, &data, sizeof data); |
|
|
|
if ((fd = dup(STDOUT_FILENO)) == -1) |
|
fatal("dup failed"); |
|
imsg_compose(&client_ibuf, MSG_STDOUT, PROTOCOL_VERSION, -1, fd, NULL, 0); |
|
|
|
if ((fd = dup(STDERR_FILENO)) == -1) |
|
fatal("dup failed"); |
|
imsg_compose(&client_ibuf, MSG_STDERR, PROTOCOL_VERSION, -1, fd, NULL, 0); |
} |
} |
|
|
void |
void |