develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [perl #20491] $SIG{RTMIN} on gentoo

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
February 7, 2003 12:55
Subject:
Re: [perl #20491] $SIG{RTMIN} on gentoo
Message ID:
Pine.SOL.4.10.10302071545570.16963-100000@maxwell.phys.lafayette.edu
On Sun, 26 Jan 2003, Shevek wrote:

> On Sun, 26 Jan 2003, Rafael Garcia-Suarez wrote:
> 
> > Shevek wrote:
> > > > Could you include also the output of
> > > > 	$ perl '-V:sig_.*'
> > > > (maybe Configure guesses something wrong)
> > > 
> > > The requested information is attached.
> > 
> > Note that the signal number listed for for RTMIN is "-1" : 
> > 
> > sig_name_init='"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "BUS", "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM", "STKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "URG", "XCPU", "XFSZ", "VTALRM", "PROF", "WINCH", "IO", "PWR", "SYS", "NUM32", "NUM33", "NUM34", "NUM35", "NUM36", "NUM37", "NUM38", "NUM39", "NUM40", "NUM41", "NUM42", "NUM43", "NUM44", "NUM45", "NUM46", "NUM47", "NUM48", "NUM49", "NUM50", "NUM51", "NUM52", "NUM53", "NUM54", "NUM55", "NUM56", "NUM57", "NUM58", "NUM59", "NUM60", "NUM61", "NUM62", "NUM63", "RTMIN", "IOT", "CLD", "POLL", "UNUSED", 0'
> > sig_num_init='0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, 6, 17, 29, 31, 0'
> > 
> > That's strange. What does your signal.h say about it ? (it maybe a file asm/signal.h or
> > another sig*.h under /usr/include). There's possibly a bug in the Configure script if
> > your signal number is different from -1.
> > 

> I attach the files in question.
> 
> root@p405u /usr/include$ grep RTMIN */*.h
> asm/signal.h:#define SIGRTMIN   32
> bits/signum.h:#define SIGRTMIN        (__libc_current_sigrtmin ())
> bits/signum.h:#define __SIGRTMIN        32

I'm unsure which of those is actually getting used.  Most likely, it's the
__libc_current_sigrtmin(), which means there's not a lot Perl can do about
it.  If the system insists on giving us a '-1' for the signal number, then
what are we to do with it?

Effectively, Configure gets its value from the following program.

#include <sys/types.h>
#include <signal.h>
#include <stdio.h>
int main() {
#ifdef SIGRTMIN 
    printf("RTMIN %d\n",SIGRTMIN);
#endif
    return 0;
}

I suspect that Configure's working fine here.  What's missing is that the
signal number is apparently dynamic in some way.  Someone who understands
such things will need to read the appropriate documentation to figure out
how such things are intended to be used.  I have no idea.

 -- 
    Andy Dougherty		doughera@lafayette.edu


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About