in reply to Keeping an INET socket inside a shared object
Have you tried turning off the CLOEXEC flag?
It's also probably a good idea to ->shutdown the sockets once you're done, especially if they may "leak" to some other thread or process.use Fcntl; ... my $socket = new IO::Socket::INET(@_) or die; $socket->fcntl(F_SETFD, 0) or die; # clear CLOEXEC ... # $socket->fcntl(F_SETFD, FD_CLOEXEC); # set CLOEXEC
ps. I've not the foggiest idea what serially bi-directional could mean. AFAIK streams are full-duplex, with separate receive and send queues, and usually have an out-of-band (OOB) mechanism too (e.g. telnet uses this to signal interrupt).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Keeping an INET socket inside a shared object
by BrowserUk (Patriarch) on Jan 18, 2014 at 18:50 UTC | |
by oiskuu (Hermit) on Jan 18, 2014 at 19:04 UTC | |
by BrowserUk (Patriarch) on Jan 18, 2014 at 20:17 UTC |