=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/server-fn.c,v retrieving revision 1.122 retrieving revision 1.123 diff -u -r1.122 -r1.123 --- src/usr.bin/tmux/server-fn.c 2019/06/20 11:59:59 1.122 +++ src/usr.bin/tmux/server-fn.c 2019/12/12 11:39:56 1.123 @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.122 2019/06/20 11:59:59 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.123 2019/12/12 11:39:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -437,36 +437,6 @@ if (options_get_number (s->options, "destroy-unattached")) session_destroy(s, 1, __func__); } -} - -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