diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-12-12 14:33:47 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-12-12 14:33:47 +0000 |
commit | 7922f4ee7bd4c18509c6774971fd007a4c5a10e3 (patch) | |
tree | cccfdd336c64b1b652a4b2333fa2efef0ba5edb3 /server-fn.c | |
parent | 0d99519c3d3522e9281f8e0726e3d71fcf3e57f3 (diff) | |
parent | 5134666702ce972390f39e34bed9b60fe566263a (diff) | |
download | rtmux-7922f4ee7bd4c18509c6774971fd007a4c5a10e3.tar.gz rtmux-7922f4ee7bd4c18509c6774971fd007a4c5a10e3.tar.bz2 rtmux-7922f4ee7bd4c18509c6774971fd007a4c5a10e3.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'server-fn.c')
-rw-r--r-- | server-fn.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/server-fn.c b/server-fn.c index cfafef21..2247f1c5 100644 --- a/server-fn.c +++ b/server-fn.c @@ -440,36 +440,6 @@ server_check_unattached(void) } } -int -server_set_stdin_callback(struct client *c, void (*cb)(struct client *, int, - void *), void *cb_data, char **cause) -{ - if (c == NULL || c->session != NULL) { - *cause = xstrdup("no client with stdin"); - return (-1); - } - if (c->flags & CLIENT_TERMINAL) { - *cause = xstrdup("stdin is a tty"); - return (-1); - } - if (c->stdin_callback != NULL) { - *cause = xstrdup("stdin is in use"); - return (-1); - } - - c->stdin_callback_data = cb_data; - c->stdin_callback = cb; - - c->references++; - - if (c->stdin_closed) - c->stdin_callback(c, 1, c->stdin_callback_data); - - proc_send(c->peer, MSG_STDIN, -1, NULL, 0); - - return (0); -} - void server_unzoom_window(struct window *w) { |