From: Craig A. Berry Date: Mon, 18 Mar 2002 13:52:59 +0000 (-0600) Subject: configure.com home-grown kill() check X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=37a3cbe46a1ddcdc9fe4dd3fa744fba525eafcf7;p=p5sagit%2Fp5-mst-13.2.git configure.com home-grown kill() check From: "Craig A. Berry" Message-Id: <5.1.0.14.2.20020318134016.01c5ee00@exchi01> p4raw-id: //depot/perl@15303 --- diff --git a/configure.com b/configure.com index 249f6e7..d7d0479 100644 --- a/configure.com +++ b/configure.com @@ -4948,15 +4948,16 @@ $ kill_by_sigprc = "undef" $ OS $ WS "#include " $ WS "#include " +$ WS "#include " $ 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"