mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 12:37:02 +00:00
Set EV_WRITE for jobs or run/if-shell jobs can hang. From Chris Johnsen.
This commit is contained in:
2
job.c
2
job.c
@ -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);
|
||||
|
Reference in New Issue
Block a user