Bug 12263: Fix startup issues blocking response to HUP
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 15 May 2014 11:24:57 +0000 (12:24 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 15 Jul 2014 14:23:29 +0000 (11:23 -0300)
commit499ff3618c4507619a84bd793727f51f5889e5b4
tree40f0322dd9bb1f0a0e7fcbc5f8aff11b08aa324a
parentd9749756ca49dc5b6f65a3e1af877deae1161e2f
Bug 12263: Fix startup issues blocking response to HUP

If you do a kill -s HUP sipserver_pid the server process
should restart its children.
This was not happening although it was logging the commencement
of the process.

Removed traces of Exporter usage this was always incorrect
this program inherits from Net::Server 'use base' to make inheritance
clearer. Removed unnecessary begin block

made file executable so it can run

added a shebang line so OS knows to invoke perl to compile and run
the file.

I've removed the debug code dumping the config to STDOUT,
it should not have gone into the production version.
One of the first things this program does is close stdout etc and
reopens the sip sockets to them. Assuming you can print to them other
than as part of the sip dialogue is not always safe.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/SIP/SIPServer.pm [changed mode: 0644->0755]