| Daveman | and/or |
| rmah | blowing things up can be fun |
| LeoNerd | dazjorz: oops. [grin] one moment |
| Daveman | YES! |
| dazjorz | LeoNerd: top line reads: 295 perl emul(netbsd) |
| rmah | I'm glad I'm not a kid these days |
| Daveman | haw |
| dazjorz | LeoNerd: after that just thousands of wait4() |
| rmah | I'd definately be in jail |
| Daveman | jailbait++ rmah, on that note, I'm glad I can't go to jail [yet] ;) |
| rmah | Daveman: um, in vernacular english, "jailbait" typically refers to nubile young girls below the legal age of consent |
| dazjorz | LeoNerd: also check the paste, http://sial.org/pbot/23470, maybe it's wait4()ing for that process :) |
| LeoNerd | dazjorz: oooooh oops. |
| Daveman | rmah, or the contra |
| LeoNerd | dazjorz: Can you change the line that goes something like last if $kid == -1 to last if $kid < 1 I wasn't aware of the == 0 case To quote perldoc: |
| dazjorz | heh, okay |
| LeoNerd | "On some systems, a value of 0 indicates that there are processes still running." Perhaps that's a BSDism |
| rmah | LeoNerd: now you know why you should always read the perldoc :-) |
| dazjorz | last if !defined $zid or $zid == -1; ? |
| LeoNerd | That's the one Make it last if !defined $zid or $zid < 1; |
| dazjorz | okay |
| Daveman | anyway, rmah, is there no module which interfaces async operations into something like Server? |
| dazjorz | last if !defined $zid or $zid < 1; # it is. :) |
| LeoNerd | Yeah.. that's what it was... |
| rmah | Daveman: threads or coroutines cpan for Coro for the latter |
| dazjorz | LeoNerd: that works just great! thanks a lot! :D |
| LeoNerd | You have 2 childs running; one dies, so we get waitpid() returns $zid, then we call waitpid() again and it returns 0 to say "that's all for now but some children remain" |
| action | dazjorz huggles LeoNerd |
| dazjorz | huggles LeoNerd |
| Daveman | :\ |
| dazjorz | LeoNerd++ |
| LeoNerd | As opposed to -1 to say "no children left" |
| Daveman | :o |