Re: question about select

2004-02-19 Thread Papo Napolitano
> Papo Napolitano wrote: > > >> On Feb 18, 2004, at 4:45 PM, Papo Napolitano wrote: > >> > >> > Heh, sorry... I simplified the code... > >> > I'm still not posting the full source because it's like 15 files :( > >> > > >> > > >> > while (1) { > >> > Fork("Whatever"); > >> > sleep 60; > >> > } >

Re: question about select

2004-02-19 Thread david
Papo Napolitano wrote: >> On Feb 18, 2004, at 4:45 PM, Papo Napolitano wrote: >> >> > Heh, sorry... I simplified the code... >> > I'm still not posting the full source because it's like 15 files :( >> > >> > >> > while (1) { >> > Fork("Whatever"); >> > sleep 60; >> > } >> >> The first time y

Re: question about select

2004-02-18 Thread R. Joseph Newton
Papo Napolitano wrote: > Hi! > > I'm using the "select undef, undef, undef, 60" trick to sleep for 60 > seconds. > But it seems to not work after I do a couple of forks like this: ... > Any clue as to what could be causing this behaviour? Yes. You are using a function for its side effects. Th

Re: question about select

2004-02-18 Thread Papo Napolitano
> On Feb 18, 2004, at 3:50 PM, Papo Napolitano wrote: > > > Hi! > > > > I'm using the "select undef, undef, undef, 60" trick to sleep for 60 > > seconds. > > But it seems to not work after I do a couple of forks like this: > > > > while (1) { > > Fork('sub1'); > > Fork('sub2'); > > Fork('sub3

Re: question about select

2004-02-18 Thread James Edward Gray II
On Feb 18, 2004, at 3:50 PM, Papo Napolitano wrote: Hi! I'm using the "select undef, undef, undef, 60" trick to sleep for 60 seconds. But it seems to not work after I do a couple of forks like this: while (1) { Fork('sub1'); Fork('sub2'); Fork('sub3'); select undef, undef, undef, 60; } "F

Re: question about select

2004-02-18 Thread Papo Napolitano
> On Feb 18, 2004, at 4:45 PM, Papo Napolitano wrote: > > > Heh, sorry... I simplified the code... > > I'm still not posting the full source because it's like 15 files :( > > > > > > while (1) { > > Fork("Whatever"); > > sleep 60; > > } > > The first time you showed this loop, it had multiple

Re: question about select

2004-02-18 Thread James Edward Gray II
On Feb 18, 2004, at 4:45 PM, Papo Napolitano wrote: Heh, sorry... I simplified the code... I'm still not posting the full source because it's like 15 files :( while (1) { Fork("Whatever"); sleep 60; } The first time you showed this loop, it had multiple fork()s in it. Now it's just one. Whi

Re: question about select

2004-02-18 Thread Papo Napolitano
> On Feb 18, 2004, at 3:50 PM, Papo Napolitano wrote: > > > Hi! > > > > I'm using the "select undef, undef, undef, 60" trick to sleep for 60 > > seconds. > > But it seems to not work after I do a couple of forks like this: > > > > while (1) { > > Fork('sub1'); > > Fork('sub2'); > > Fork('sub

Re: question about select

2004-02-18 Thread James Edward Gray II
On Feb 18, 2004, at 3:50 PM, Papo Napolitano wrote: Hi! I'm using the "select undef, undef, undef, 60" trick to sleep for 60 seconds. But it seems to not work after I do a couple of forks like this: while (1) { Fork('sub1'); Fork('sub2'); Fork('sub3'); select undef, undef, undef, 60; This