Skip Menu |

This queue is for tickets about the FCGI-ProcManager CPAN distribution.

Report information
The Basics
Id: 120448
Status: open
Priority: 0/
Queue: FCGI-ProcManager

People
Owner: Nobody in particular
Requestors: KAZUHO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.27
Fixed in: (no value)



Subject: fatal error during startup
When using 0.27 I see the following fatal error. SIG is not a valid POSIX macro at /usr/local/share/perl/5.14.2/FCGI/ProcManager.pm line 165 This is because the _set_signal_handler function fails to accept the arguments. Notice that `= @_` is missing in the first line. ``` sub _set_signal_handler { my ($this, $signal, $restart); if ($^O eq 'MSWin32') { $SIG{$signal} = 'FCGI::ProcManager::sig_sub'; } else { no strict 'refs'; sigaction(&{"POSIX::SIG$signal"}(), $restart ? $this->{sigaction_sa_restart} : $this->{sigaction_no_sa_restart}) or $this->pm_warn("sigaction: SIG$signal: $!"); } } ```
On Mon Feb 27 21:04:28 2017, KAZUHO wrote: Show quoted text
> When using 0.27 I see the following fatal error. > > SIG is not a valid POSIX macro at > /usr/local/share/perl/5.14.2/FCGI/ProcManager.pm line 165 > > This is because the _set_signal_handler function fails to accept the > arguments. Notice that `= @_` is missing in the first line. > > ``` > sub _set_signal_handler { > my ($this, $signal, $restart); > > if ($^O eq 'MSWin32') { > $SIG{$signal} = 'FCGI::ProcManager::sig_sub'; > } else { > no strict 'refs'; > sigaction(&{"POSIX::SIG$signal"}(), $restart ? $this-
> >{sigaction_sa_restart} : $this->{sigaction_no_sa_restart})
> or $this->pm_warn("sigaction: SIG$signal: $!"); > } > } > ```
Oof. Thank you for the report. I suppose that shows that having something out as a trial release for over 2 years doesn't mean that anyone has ever *tried* it. It's unclear to me why it passed the automated tests, but in any case I'll get a fix out shortly.