david, actually, without the while loop every user in the array gets forked at one time. 500+ forks. I put the while loop in and it does one at a time..
chad On Thu, 2002-09-26 at 14:28, david wrote: > Chad Kellerman wrote: > > > I have: > > > > foreach my $usr (@users) { > > my $UsrPid; > > unless ($UsrPid = fork) { > > while fork { > > do stuff > > exit 0; > > } > > exit 0; > > i don't understand why you need another 'while fork' here. > thte parent goes into the while loop, do stuff and then exit. the child > process simply ignore the while loop and then immediately exit. the child > does nothing. the 'while fork' seems unecessary. > > david > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Chad Kellerman Jr. Systems Administrator Alabanza Inc 410-234-3305
signature.asc
Description: This is a digitally signed message part