From 587f5f0aab6206c8b2d8b4bf2f846d732d22a772 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 18 Apr 2014 13:51:55 -0300 Subject: Fix bug of `job_stop` not emitting `JobExit` The `job_stop` function was calling `uv_read_stop` on the std{out,err} streams. This is now responsibility of `RStream` and because of those calls `job_stop` wasn't emitting the `JobExit` event. --- src/os/job.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/os/job.c b/src/os/job.c index 443fe50a41..bb8e79124f 100644 --- a/src/os/job.c +++ b/src/os/job.c @@ -212,8 +212,6 @@ bool job_stop(int id) return false; } - uv_read_stop((uv_stream_t *)&job->proc_stdout); - uv_read_stop((uv_stream_t *)&job->proc_stderr); job->stopped = true; return true; -- cgit