diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-06-20 08:45:19 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-06-20 08:45:19 +0100 |
commit | 8b8a007e8e1faa6af20acdeac728c4fddfeb2f6b (patch) | |
tree | 10612c9842dbdb0749e0840cf057ca4a08a84948 /client.c | |
parent | 8abcea18a24dea24d6049fefa31c877133489092 (diff) | |
parent | 0ef3e28609ba89f53bedf40f5facc990cc57e60d (diff) | |
download | rtmux-8b8a007e8e1faa6af20acdeac728c4fddfeb2f6b.tar.gz rtmux-8b8a007e8e1faa6af20acdeac728c4fddfeb2f6b.tar.bz2 rtmux-8b8a007e8e1faa6af20acdeac728c4fddfeb2f6b.zip |
Merge branch 'master' of github.com:tmux/tmux
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -352,9 +352,10 @@ client_main(int argc, char **argv, int flags) void client_send_identify(int flags) { - const char *s; + const char *s; char **ss; - int fd; + int fd; + pid_t pid; client_write_one(MSG_IDENTIFY_FLAGS, -1, &flags, sizeof flags); @@ -374,6 +375,9 @@ client_send_identify(int flags) fatal("dup failed"); client_write_one(MSG_IDENTIFY_STDIN, fd, NULL, 0); + pid = getpid(); + client_write_one(MSG_IDENTIFY_CLIENTPID, -1, &pid, sizeof pid); + for (ss = environ; *ss != NULL; ss++) client_write_one(MSG_IDENTIFY_ENVIRON, -1, *ss, strlen(*ss) + 1); |