Skip Menu |

This queue is for tickets about the Proc-Queue CPAN distribution.

Report information
The Basics
Id: 44237
Status: rejected
Worked: 35 min
Priority: 0/
Queue: Proc-Queue

People
Owner: salva [...] cpan.org
Requestors: felix [...] regentmarkets.com
Cc:
AdminCc:

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



Subject: Warning: Prototype mismatch: sub CORE::GLOBAL::exit: none vs (;$)
Date: Tue, 17 Mar 2009 09:09:42 +0000
To: bug-Proc-Queue [...] rt.cpan.org.
From: "Tan Chong Gee, Felix" <felix [...] regentmarkets.com>
Hi Mr Proc-Queue Show quoted text
------- Environment------------- Package name and version: Proc-Queue v1.23 Perl version: perl, v5.8.8 built for i486-linux-gnu-thread-multi Operation system Verdor: Linux felixdev.regentmarkets.com 2.6.18-92.1.13.el5.028stab059.3PAE #1 SMP Wed Oct 15 18:14:58 MSD 2008 i686 GNU/Linux
---------Description-------------- When I include the latest Proc-Queue into our system, the following warning occur when I loaded the cgi which call this module: [felixdev__] [modperl] Prototype mismatch: sub CORE::GLOBAL::exit: none vs (;$) at /usr/share/perl5/Proc/Queue.pm line 427, <GEN2> line 1. [failed] [Connection refused] I suspect this is because Proc::Queue defined its own prototype parameter (;?) in their new_exit subroutine and try to overwrite the system exit subroutine. Because of both parameter is different, system prompted this message. please advise. thanks Regards, Felix
Hi Show quoted text
> When I include the latest Proc-Queue into our system, the following > warning occur when I loaded the cgi which call this module: > > [felixdev__] [modperl] Prototype mismatch: sub CORE::GLOBAL::exit: > none vs (;$) at /usr/share/perl5/Proc/Queue.pm line 427, <GEN2> line > 1. [failed] [Connection refused] > > I suspect this is because Proc::Queue defined its own prototype > parameter (;?) > in their new_exit subroutine and try to overwrite the system exit > subroutine. > Because of both parameter is different, system prompted this message.
$ perl -e 'print prototype("CORE::exit")' ;$ It seems that Proc::Queue uses the right prototype. Probably mod_perl is redefining exit to some sub without prototype and when Proc::Queue redefines it again later the warning is generated. Cheers, - Salva