develooper Front page | perl.perl5.porters | Postings from July 2000

POSIX module in 64-bit mode does signals differently from 32-bit mode

Thread Next
From:
Jeff Okamoto
Date:
July 31, 2000 11:13
Subject:
POSIX module in 64-bit mode does signals differently from 32-bit mode
Message ID:
200007290025.RAA06394@xfiles.intercon.hp.com
I'm experiencing some strangeness with the POSIX module.  This is 5.6.0 on
HP-UX 11.00, compiled in 32-bit and 64-bit modes (-Duse64bitint and
-Duse64bitall) with HP's ANSI C compiler.

In 32-bit mode, the module tests out okay.

In 64-bit mode, the "ok 10" message comes out before the "ok 9" message.

The sections of test code are:

	$action = new POSIX::SigAction 'main::SigHUP', $mask, 0;
	sigaction(&SIGHUP, $action);
	$SIG{'INT'} = 'SigINT';
	kill 'HUP', $$;
	sleep 1;
	print "ok 11\n";

	sub SigHUP {
	    print "ok 8\n";
	    kill 'INT', $$;
	    sleep 2;
	    print "ok 9\n";
	}

	sub SigINT {
	    print "ok 10\n";
	}

So it appears the SIGINT handler is getting called even while the SIGHUP
handler is still running.

Has anyone else seen this bizarre behaviour?

Thanks,
Jeff

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