Permalink
Browse files

Fix: It corrected so that the reading pipe which is not closed might …

…be closed.
  • Loading branch information...
1 parent 7e42d77 commit 8e82da2c5f5e667a816162cb5d902f66e2802804 yusuke committed Mar 12, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 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 8e82da2

Please sign in to comment.