From: Harry Butterworth <harry@hebutterworth.freeserve.co.uk>
To: Muli Ben-Yehuda <muli@il.ibm.com>
Cc: andrew.warfield@cl.cam.ac.uk, xen-devel@lists.xensource.com,
julian.chesterfield@cl.cam.ac.uk
Subject: Re: [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr
Date: Tue, 01 Aug 2006 11:20:59 +0100 [thread overview]
Message-ID: <1154427660.7694.17.camel@localhost.localdomain> (raw)
In-Reply-To: <20060801101855.GE4774@rhun.haifa.ibm.com>
On Tue, 2006-08-01 at 13:18 +0300, Muli Ben-Yehuda wrote:
> On Tue, Aug 01, 2006 at 11:13:29AM +0100, Keir Fraser wrote:
> >
> > On 1 Aug 2006, at 11:06, Muli Ben-Yehuda wrote:
> >
> > >>> Also, fileno(stdin) is nicer.
> > >>
> > >>Why? I don't think so.
> > >
> > >fclose(stdin); /* and the rest */
> > >fd = open(...); /* fd is 0 */
> > >close(STDIN_FILENO); /* does the wrong thing */
> > >close(fileno(stdin)); /* does the right thing */
> >
> > Yes, that's the better way even though we won't have done tricks such
> > as the above when daemonise runs. Also a new patch needs to be based at
> > least on xen-unstable 10876 which is the original patch from Harry --
> > it isn't in the public tree yet for some reason: I'll check up on that.
> > And any changes may also need to be applied to the xenstored original
> > (no sense in updating one and not the other).
>
> Does it make sense for this to be folded into a common utility
> library?
Anil Madhavapeddy pointed out it already is: man 3 daemon.
>
> Cheers,
> Muli
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
next prev parent reply other threads:[~2006-08-01 10:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-31 15:15 [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr Harry Butterworth
2006-07-31 17:31 ` Muli Ben-Yehuda
2006-08-01 10:01 ` Harry Butterworth
2006-08-01 10:06 ` Muli Ben-Yehuda
2006-08-01 10:13 ` Keir Fraser
2006-08-01 10:18 ` Muli Ben-Yehuda
2006-08-01 10:20 ` Harry Butterworth [this message]
2006-08-01 10:27 ` Muli Ben-Yehuda
2006-08-01 10:33 ` Keir Fraser
2006-08-01 11:57 ` Jimi Xenidis
2006-08-01 10:22 ` Keir Fraser
2006-08-01 10:19 ` Harry Butterworth
2006-08-01 10:24 ` Keir Fraser
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=1154427660.7694.17.camel@localhost.localdomain \
--to=harry@hebutterworth.freeserve.co.uk \
--cc=andrew.warfield@cl.cam.ac.uk \
--cc=julian.chesterfield@cl.cam.ac.uk \
--cc=muli@il.ibm.com \
--cc=xen-devel@lists.xensource.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.