All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove the double open with same mode
@ 2010-03-13  0:17 Malahal Naineni
  2010-03-13  4:18 ` Alasdair G Kergon
  0 siblings, 1 reply; 7+ messages in thread
From: Malahal Naineni @ 2010-03-13  0:17 UTC (permalink / raw)
  To: lvm-devel

Signed-off-by: Malahal Naineni (malahal at us.ibm.com)

diff -r 8db1b9ee17a8 -r ee77738483f1 daemons/dmeventd/dmeventd.c
--- a/daemons/dmeventd/dmeventd.c	Fri Mar 12 16:15:25 2010 -0800
+++ b/daemons/dmeventd/dmeventd.c	Fri Mar 12 16:16:15 2010 -0800
@@ -1651,7 +1651,6 @@ static void _daemonize(void)
 		close(fd);
 
 	if ((open("/dev/null", O_RDONLY) < 0) ||
-	    (open("/dev/null", O_WRONLY) < 0) ||
 	    (open("/dev/null", O_WRONLY) < 0))
 		exit(EXIT_DESC_OPEN_FAILURE);
 



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-15 18:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-13  0:17 [PATCH] Remove the double open with same mode Malahal Naineni
2010-03-13  4:18 ` Alasdair G Kergon
2010-03-15  8:59   ` Zdenek Kabelac
2010-03-15 15:37     ` Bryn M. Reeves
2010-03-15 16:58     ` Tim Post
2010-03-15 17:41   ` malahal
2010-03-15 18:16     ` Alasdair G Kergon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.