Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > c83e50267511ecff72557ff0fe13ba7b > files > 2

bootparamd-0.17-26.el5_7.1.src.rpm

--- netkit-bootparamd-0.17-pre20000412/configure.sopwith	2004-07-02 16:09:42.000000000 -0400
+++ netkit-bootparamd-0.17-pre20000412/configure	2004-07-02 16:47:08.000000000 -0400
@@ -160,29 +160,35 @@
 cat <<EOF >__conftest.c
 #include <unistd.h>
 #include <signal.h>
-int count=0;
+volatile int count=0;
 void handle(int foo) { count++; }
 int main() {
+    sigset_t sset;
     int pid=getpid();
+    sigemptyset(&sset);
+    sigaddset(&sset, SIGINT);
+    sigprocmask(SIG_UNBLOCK, &sset, NULL);
     signal(SIGINT, handle);
     kill(pid,SIGINT);
     kill(pid,SIGINT);
     kill(pid,SIGINT);
+    sleep(1);
     if (count!=3) return 1;
     return 0;
 }
 
 EOF
+cat __conftest.c
 if (
       $CC $CFLAGS  __conftest.c  -o __conftest || exit 1
       ./__conftest || exit 1
-   ) >/dev/null 2>&1; then
+   ); then
     echo 'yes'
 else
     if (
           $CC $CFLAGS -D__USE_BSD_SIGNAL __conftest.c  -o __conftest || exit 1
           ./__conftest || exit 1
-       ) >/dev/null 2>&1; then
+       ); then
         echo '-D__USE_BSD_SIGNAL'
         CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
     else