diff options
author | Craig A. Berry <craigberry@mac.com> | 2002-03-18 07:52:59 -0600 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-18 18:54:27 +0000 |
commit | 37a3cbe46a1ddcdc9fe4dd3fa744fba525eafcf7 (patch) | |
tree | 42739dbf90e007c2fe1b17a423bd7b926fd9cb4f /configure.com | |
parent | 289515990248143545c2f83ce9b614619ef34ee4 (diff) | |
download | perl-37a3cbe46a1ddcdc9fe4dd3fa744fba525eafcf7.tar.gz |
configure.com home-grown kill() check
From: "Craig A. Berry" <craigberry@mac.com>
Message-Id: <5.1.0.14.2.20020318134016.01c5ee00@exchi01>
p4raw-id: //depot/perl@15303
Diffstat (limited to 'configure.com')
-rw-r--r-- | configure.com | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.com b/configure.com index 249f6e7052..d7d0479fa7 100644 --- a/configure.com +++ b/configure.com @@ -4948,15 +4948,16 @@ $ kill_by_sigprc = "undef" $ OS $ WS "#include <stdio.h>" $ WS "#include <signal.h>" +$ WS "#include <unistd.h>" $ WS "void handler(int s) { printf(""%d\n"",s); } " $ WS "main(){" $ WS " printf(""0"");" -$ WS " signal(1,handler); kill(0,1);" +$ WS " signal(1,handler); kill(getpid(),1);" $ WS "}" $ CS $ ON ERROR THEN CONTINUE $ GOSUB compile -$ IF tmp .NES. "0" +$ IF tmp .NES. "01" $ THEN $ echo4 "Yes, it does." $ echo4 "Checking whether we can use SYS$SIGPRC instead" |