diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-04-10 12:20:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-04-10 12:20:35 +0000 |
commit | 9fcda95a6f55f017536cdf24366754a2304c1059 (patch) | |
tree | 228268a5b75855d970685f1bfb1d6396c261a08b /job.c | |
parent | 7ada64d5f8a0df39229c41b992c0ee8ac9f0a1d7 (diff) | |
download | rtmux-9fcda95a6f55f017536cdf24366754a2304c1059.tar.gz rtmux-9fcda95a6f55f017536cdf24366754a2304c1059.tar.bz2 rtmux-9fcda95a6f55f017536cdf24366754a2304c1059.zip |
Set EV_WRITE for jobs or run/if-shell jobs can hang. From Chris Johnsen.
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -109,7 +109,7 @@ job_run(const char *cmd, struct session *s, job->event = bufferevent_new(job->fd, NULL, job_write_callback, job_callback, job); - bufferevent_enable(job->event, EV_READ); + bufferevent_enable(job->event, EV_READ|EV_WRITE); log_debug("run job %p: %s, pid %ld", job, job->cmd, (long) job->pid); return (job); |