Hello,

I use Net::LDAP within a daemon that forks, after Net::LDAP is
connected. The intention is, to be able to return an error code on
startup if the connection fails and only daemonize, if the connection
comes up.
Unfortunately as parent and client process will have a clone of the same
connection handle after fork(), the parent process (the one that returns
to the shell) will tear down the connection on exit. With DBI I always
avoided this behavior by setting the InactiveDestroy property to 1.

Does Net::LDAP have a mechanism comparable to InactiveDestroy?

Thanks in advance,
Dirk

Reply via email to