8219611: Remove superfluous sigfillset code
authormikael
Fri, 22 Feb 2019 18:54:23 -0800
changeset 53907 c1885a1d62a3
parent 53906 a6fb5e60588f
child 53908 45a23c64d0f6
8219611: Remove superfluous sigfillset code Reviewed-by: dholmes
src/hotspot/os/posix/os_posix.cpp
--- a/src/hotspot/os/posix/os_posix.cpp	Fri Feb 22 14:39:57 2019 -0800
+++ b/src/hotspot/os/posix/os_posix.cpp	Fri Feb 22 18:54:23 2019 -0800
@@ -191,10 +191,6 @@
 
   os::native_path(fullname);
 
-  sigset_t set, oldset;
-  int ret = sigfillset(&set);
-  assert_with_errno(ret == 0, "sigfillset returned error");
-
   // set the file creation mask.
   mode_t file_mode = S_IRUSR | S_IWUSR;
 
@@ -208,7 +204,7 @@
   }
 
   // delete the name from the filesystem. When 'fd' is closed, the file (and space) will be deleted.
-  ret = unlink(fullname);
+  int ret = unlink(fullname);
   assert_with_errno(ret == 0, "unlink returned error");
 
   os::free(fullname);