Re: autotest: problem testing daemons, with possible fix

2010-11-27 Thread Paul Eggert
On 11/27/2010 01:28 AM, Ralf Wildenhues wrote: > Is it possible to devise an easy test case in > shell? It depends on one's definition of "easy". One complication is that some shells close fd 5 automatically; for these shells there was no bug and the fix is a no-op. Another complication is that

Re: autotest: problem testing daemons, with possible fix

2010-11-27 Thread Ralf Wildenhues
Hello, * Paul Eggert wrote on Thu, Nov 25, 2010 at 07:47:08PM CET: > [Following up on > , > and adding bug-autoconf] > --- a/lib/autotest/general.m4 > +++ b/lib/autotest/general.m4 > @@ -2190,7 +2190,7 @@ m4_define([_AT_CHECK], >

Re: autotest: problem testing daemons, with possible fix

2010-11-26 Thread Paolo Bonzini
On 11/26/2010 10:23 AM, Paul Eggert wrote: On 11/25/2010 03:24 PM, Luke Mewburn wrote: Your patch also solves the problem. OK, thanks, I installed it. Still would appreciate another pair of eyes at some point. I think it's good. Paolo ___ Autoco

Re: autotest: problem testing daemons, with possible fix

2010-11-26 Thread Paul Eggert
On 11/25/2010 03:24 PM, Luke Mewburn wrote: > Your patch also solves the problem. OK, thanks, I installed it. Still would appreciate another pair of eyes at some point. ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/au

Re: autotest: problem testing daemons, with possible fix

2010-11-25 Thread Luke Mewburn
On Thu, Nov 25, 2010 at 10:36:23PM +0200, Andrew W. Nosenko wrote: | On Wed, Nov 24, 2010 at 06:58, Luke Mewburn wrote: | > I've been using autotest for a couple of years, for unit tests | > and overall system systems of large daemons, that daemonize | > themselves using the daemon(3) func

Re: autotest: problem testing daemons, with possible fix

2010-11-25 Thread Luke Mewburn
On Thu, Nov 25, 2010 at 10:47:08AM -0800, Paul Eggert wrote: | On 11/23/2010 08:58 PM, Luke Mewburn wrote: | > Is there any reason that AT_CHECK doesn't close this fd before | > executing the application? | | Thanks for reporting the problem. | | I don't know of any reason AT_CHECK

Re: autotest: problem testing daemons, with possible fix

2010-11-25 Thread Andrew W. Nosenko
On Wed, Nov 24, 2010 at 06:58, Luke Mewburn wrote: > Hi folks, > > I've been using autotest for a couple of years, for unit tests > and overall system systems of large daemons, that daemonize > themselves using the daemon(3) function (originally from 4.4BSD, > also in glibc). > > Until now I've be

Re: autotest: problem testing daemons, with possible fix

2010-11-25 Thread Paul Eggert
[Following up on , and adding bug-autoconf] On 11/23/2010 08:58 PM, Luke Mewburn wrote: > Is there any reason that AT_CHECK doesn't close this fd before > executing the application? Thanks for reporting the problem. I don't know

autotest: problem testing daemons, with possible fix

2010-11-23 Thread Luke Mewburn
Hi folks, I've been using autotest for a couple of years, for unit tests and overall system systems of large daemons, that daemonize themselves using the daemon(3) function (originally from 4.4BSD, also in glibc). Until now I've been using a workaround for starting the daemon because "something"