mirror of
https://github.com/tmux/tmux.git
synced 2025-09-09 02:19:04 +00:00
Move the poll registration functions into the server-*.c files.
This commit is contained in:
13
server-job.c
13
server-job.c
@ -22,6 +22,19 @@
|
||||
|
||||
#include "tmux.h"
|
||||
|
||||
/* Register jobs for poll. */
|
||||
void
|
||||
server_job_prepare(void)
|
||||
{
|
||||
struct job *job;
|
||||
|
||||
SLIST_FOREACH(job, &all_jobs, lentry) {
|
||||
if (job->fd == -1)
|
||||
continue;
|
||||
server_poll_add(job->fd, POLLIN, server_job_callback, job);
|
||||
}
|
||||
}
|
||||
|
||||
/* Process a single job event. */
|
||||
void
|
||||
server_job_callback(int fd, int events, void *data)
|
||||
|
Reference in New Issue
Block a user