Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: fork() and defunct children

by shmem (Chancellor)
on Feb 11, 2008 at 20:45 UTC ( [id://667445]=note: print w/replies, xml ) Need Help??


in reply to fork() and defunct children

First of all,
# Wait for the MySQL server to become responsive. my $tries = 0; while ( !$dbh->ping && $tries++ < $opts{w} ) { sleep(1);

I'd print some debug messages before the sleep() call. If they don't show up, it means the ping never returns. In that case I'd set up a local $SIG{ALRM} = \&report_fail and drag the flow out of the $dbh->ping, printing as much informative message I can get from the current scope, DBI or the system all that runs on.

If that fails to give me a clue, I'd go on with wiretapping (e.g. wireshark), then tracing/trussing the involved processes.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://667445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-24 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found