- Timestamp:
- 01/02/10 10:31:00 (3 years ago)
- Location:
- lang/perl/Server-Starter/trunk
- Files:
-
- 2 modified
-
Changes (modified) (1 diff)
-
lib/Server/Starter.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Server-Starter/trunk/Changes
r35597 r36332 1 1 Revision history for Perl extension Server::Starter. 2 3 0.06 Sat Jan 02 10:26:00 2010 4 - bugfix: start_server did not shutdown upon receiving SIGINT while the worker is failing to start up 2 5 3 6 0.05 Tue Oct 13 20:30:00 2009 -
lang/perl/Server-Starter/trunk/lib/Server/Starter.pm
r35597 r36332 12 12 use Exporter qw(import); 13 13 14 our $VERSION = '0.0 5';14 our $VERSION = '0.06'; 15 15 our @EXPORT_OK = qw(start_server server_ports); 16 17 my @signals_received; 16 18 17 19 sub start_server { … … 65 67 66 68 # setup signal handlers 67 my @signals_received;68 69 $SIG{$_} = sub { 69 70 push @signals_received, $_[0]; … … 149 150 print STDERR "starting new worker $pid\n"; 150 151 sleep $opts->{interval}; 151 if (waitpid($pid, WNOHANG) <= 0) { 152 if ((grep { $_ ne 'HUP' } @signals_received) 153 || waitpid($pid, WNOHANG) <= 0) { 152 154 last; 153 155 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)