All of lore.kernel.org
 help / color / mirror / Atom feed
From: Malahal Naineni <malahal@us.ibm.com>
To: lvm-devel@redhat.com
Subject: [PATCH] Remove the double open with same mode
Date: Fri, 12 Mar 2010 16:17:56 -0800	[thread overview]
Message-ID: <ee77738483f149622d19.1268439476@localhost> (raw)

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);
 



             reply	other threads:[~2010-03-13  0:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-13  0:17 Malahal Naineni [this message]
2010-03-13  4:18 ` [PATCH] Remove the double open with same mode 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ee77738483f149622d19.1268439476@localhost \
    --to=malahal@us.ibm.com \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.