mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Set EV_WRITE for jobs or run/if-shell jobs can hang. From Chris Johnsen.
This commit is contained in:
parent
7ada64d5f8
commit
9fcda95a6f
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);
|
||||
|
Loading…
Reference in New Issue
Block a user