Set EV_WRITE for jobs or run/if-shell jobs can hang. From Chris Johnsen.

pull/1/head
Nicholas Marriott 2013-04-10 12:20:35 +00:00
parent 7ada64d5f8
commit 9fcda95a6f
1 changed files with 1 additions and 1 deletions

2
job.c
View File

@ -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);