Re: [PATCH 1/3] Close devnull file handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ACK

On 13/01/14 14:00, Jan Friesse wrote:
Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
  exec/main.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/exec/main.c b/exec/main.c
index 3229b47..84c3eac 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -431,8 +431,10 @@ static void corosync_tty_detach (void)

  	if (dup2(devnull, 0) < 0 || dup2(devnull, 1) < 0
  	    || dup2(devnull, 2) < 0) {
+		close(devnull);
  		corosync_exit_error (COROSYNC_DONE_STD_TO_NULL_REDIR);
  	}
+	close(devnull);
  }

  static void corosync_mlockall (void)


_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux