mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-23 14:28:55 +01: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->event = bufferevent_new(job->fd, NULL, job_write_callback,
|
||||||
job_callback, job);
|
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);
|
log_debug("run job %p: %s, pid %ld", job, job->cmd, (long) job->pid);
|
||||||
return (job);
|
return (job);
|
||||||
|
Loading…
Reference in New Issue
Block a user