avoid failing hard if 'gnunetcheck' db does not exist
[oweals/gnunet.git] / src / util / scheduler.c
index dd0d5d5cf43b32645a1c82e7fa1d71f0ae0326bf..3bd7ccec7e4c61cbb1128396e99e067c72c9cc9a 100644 (file)
@@ -658,8 +658,8 @@ sighandler_shutdown ()
   int old_errno = errno;        /* backup errno */
 
   if (getpid () != my_pid)
-    exit (1);                   /* we have fork'ed since the signal handler was created,
-                                 * ignore the signal, see https://gnunet.org/vfork discussion */
+    _exit (1);                   /* we have fork'ed since the signal handler was created,
+                                  * ignore the signal, see https://gnunet.org/vfork discussion */
   GNUNET_DISK_file_write (GNUNET_DISK_pipe_handle
                           (shutdown_pipe_handle, GNUNET_DISK_PIPE_END_WRITE),
                           &c, sizeof (c));