configure.com home-grown kill() check
authorCraig A. Berry <craigberry@mac.com>
Mon, 18 Mar 2002 13:52:59 +0000 (07:52 -0600)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 18 Mar 2002 18:54:27 +0000 (18:54 +0000)
From: "Craig A. Berry" <craigberry@mac.com>
Message-Id: <5.1.0.14.2.20020318134016.01c5ee00@exchi01>

p4raw-id: //depot/perl@15303

configure.com

index 249f6e7..d7d0479 100644 (file)
@@ -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"