|Do you know where your variables are?|
close_on_exec in Perl : close socket opened in parent process when fork child , is not workingby chinaxing (Acolyte)
|on Jan 17, 2013 at 10:09 UTC||Need Help??|
chinaxing has asked for the
wisdom of the Perl Monks concerning the following question:
I open a socket in my main perl program,
than i execute a shell script :'/home/admin/t.sh',
when i use CTRL-C to interrupt the perl program,
i saw that the port '4444' was already openning by the shell script's program。
so，how to close the socket fd when the `system` function was executed ?
the $^F variable is unuseful.very thanks !