< prev index next >

src/java.base/linux/native/libnet/linux_close.c

Print this page

        

@@ -58,11 +58,11 @@
 } fdEntry_t;
 
 /*
  * Signal to unblock thread
  */
-static int sigWakeup = (__SIGRTMAX - 2);
+static int sigWakeup;
 
 /*
  * fdTable holds one entry per file descriptor, up to a certain
  * maximum.
  * Theoretically, the number of possible file descriptors can get

@@ -147,10 +147,11 @@
     }
 
     /*
      * Setup the signal handler
      */
+    sigWakeup = SIGRTMAX - 2;
     sa.sa_handler = sig_wakeup;
     sa.sa_flags   = 0;
     sigemptyset(&sa.sa_mask);
     sigaction(sigWakeup, &sa, NULL);
 
< prev index next >