If the children are being killed by signals, you have to trap those signals
in the child and call exit to allow proper shutdown processing to occur.
Then you can also use an END block if you need to handle things more
gracefully.  Normally just allowing the handle variables to go out of scope
(including normal shutdown) is sufficient.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "ariel mastracchio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 12:07
Subject: Problems DBI/DBD::Oracle/Perl..


>    I have a server that spawn childs that make
> connecion to a Oracle DB, the problem is when the
> childs die, a lot of <defunct> (1 per connection lost)
> left in ps.
>
>    i put a print "hello" in the SIGCHLD reaper
> function but this is never called!!
>
>    All work good if i clean all database use from the
> code..
>
>    The SO is Solaris 8, the DB is Oracle 8.1.7...
>
>    The perl is the 5.6.1 (build with gcc)...
>
>    The DBI version is 1.20



Reply via email to