Permalink
Browse files

Merge pull request #255 from yuusuke/fix_pipe_close

Fix: It corrected so that the reading pipe which is not closed might be ...
  • Loading branch information...
2 parents 19ab18c + 8e82da2 commit 6baccba0700344898a2fc50ba961d807d6cdd248 @beekhof beekhof committed Mar 13, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/services/services_linux.c
View
3 lib/services/services_linux.c
@@ -452,6 +452,9 @@ services_os_action_execute(svc_action_t * op, gboolean synchronous)
read_output(op->opaque->stdout_fd, op);
read_output(op->opaque->stderr_fd, op);
+ close(op->opaque->stdout_fd);
+ close(op->opaque->stderr_fd);
+
} else {
crm_trace("Async waiting for %d - %s", op->pid, op->opaque->exec);
mainloop_add_child(op->pid, op->timeout, op->id, op, operation_finished);

0 comments on commit 6baccba

Please sign in to comment.