mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 12:48:56 +00:00
Minor tidying; remove some old debugging messages.
This commit is contained in:
parent
4846ad1657
commit
d531dbb53a
1
TODO
1
TODO
@ -53,3 +53,4 @@
|
||||
- document status line options, title bits
|
||||
- document window options changes
|
||||
- more # commands in status-left,right eg #H for hostname. others?
|
||||
- input.c is too complicated. simplify?
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: client-msg.c,v 1.15 2009-01-07 22:52:33 nicm Exp $ */
|
||||
/* $Id: client-msg.c,v 1.16 2009-01-07 22:57:03 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -34,7 +34,6 @@ int client_msg_fn_pause(struct hdr *, struct client_ctx *, char **);
|
||||
|
||||
struct client_msg {
|
||||
enum hdrtype type;
|
||||
|
||||
int (*fn)(struct hdr *, struct client_ctx *, char **);
|
||||
};
|
||||
struct client_msg client_msg_table[] = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: server-msg.c,v 1.53 2009-01-07 22:52:33 nicm Exp $ */
|
||||
/* $Id: server-msg.c,v 1.54 2009-01-07 22:57:03 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -39,7 +39,6 @@ void printflike2 server_msg_fn_command_info(
|
||||
|
||||
struct server_msg {
|
||||
enum hdrtype type;
|
||||
|
||||
int (*fn)(struct hdr *, struct client *);
|
||||
};
|
||||
const struct server_msg server_msg_table[] = {
|
||||
|
10
server.c
10
server.c
@ -1,4 +1,4 @@
|
||||
/* $Id: server.c,v 1.88 2009-01-06 15:37:15 nicm Exp $ */
|
||||
/* $Id: server.c,v 1.89 2009-01-07 22:57:03 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -191,14 +191,12 @@ server_main(const char *srv_path, int srv_fd)
|
||||
xtimeout = 100;
|
||||
|
||||
/* Do the poll. */
|
||||
/* log_debug("polling %d fds", nfds); */
|
||||
if ((nfds = poll(pfds, nfds, xtimeout)) == -1) {
|
||||
if (errno == EAGAIN || errno == EINTR)
|
||||
continue;
|
||||
fatal("poll failed");
|
||||
}
|
||||
pfd = pfds;
|
||||
/* log_debug("poll returned %d", nfds); */
|
||||
|
||||
/* Handle server socket. */
|
||||
#ifndef BROKEN_POLL
|
||||
@ -273,7 +271,6 @@ server_fill_windows(struct pollfd **pfd)
|
||||
(*pfd)->events = POLLIN;
|
||||
if (BUFFER_USED(w->out) > 0)
|
||||
(*pfd)->events |= POLLOUT;
|
||||
/* log_debug("adding window %d (%d)", (*pfd)->fd, w->fd); */
|
||||
}
|
||||
(*pfd)++;
|
||||
}
|
||||
@ -288,7 +285,6 @@ server_handle_windows(struct pollfd **pfd)
|
||||
|
||||
for (i = 0; i < ARRAY_LENGTH(&windows); i++) {
|
||||
if ((w = ARRAY_ITEM(&windows, i)) != NULL && w->fd != -1) {
|
||||
/* log_debug("testing window %d (%d)", (*pfd)->fd, w->fd); */
|
||||
if (buffer_poll(*pfd, w->in, w->out) != 0)
|
||||
server_lost_window(w);
|
||||
else
|
||||
@ -432,7 +428,6 @@ server_fill_clients(struct pollfd **pfd)
|
||||
(*pfd)->events = POLLIN;
|
||||
if (BUFFER_USED(c->out) > 0)
|
||||
(*pfd)->events |= POLLOUT;
|
||||
/* log_debug("adding client %d (%d)", (*pfd)->fd, c->fd); */
|
||||
}
|
||||
(*pfd)++;
|
||||
|
||||
@ -443,7 +438,6 @@ server_fill_clients(struct pollfd **pfd)
|
||||
(*pfd)->events = POLLIN;
|
||||
if (BUFFER_USED(c->tty.out) > 0)
|
||||
(*pfd)->events |= POLLOUT;
|
||||
/* log_debug("adding tty %d (%d)", (*pfd)->fd, c->tty.fd); */
|
||||
}
|
||||
(*pfd)++;
|
||||
}
|
||||
@ -460,7 +454,6 @@ server_handle_clients(struct pollfd **pfd)
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
|
||||
if (c != NULL) {
|
||||
/* log_debug("testing client %d (%d)", (*pfd)->fd, c->fd); */
|
||||
if (buffer_poll(*pfd, c->in, c->out) != 0) {
|
||||
server_lost_client(c);
|
||||
(*pfd) += 2;
|
||||
@ -471,7 +464,6 @@ server_handle_clients(struct pollfd **pfd)
|
||||
(*pfd)++;
|
||||
|
||||
if (c != NULL && c->tty.fd != -1 && c->session != NULL) {
|
||||
/* log_debug("testing tty %d (%d)", (*pfd)->fd, c->tty.fd); */
|
||||
if (buffer_poll(*pfd, c->tty.in, c->tty.out) != 0)
|
||||
server_lost_client(c);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user