Smallers steps to keep plugin running
[oweals/gnunet.git] / src / arm / gnunet-service-arm.c
index b63d56a32356528e5c0d55e65439b78da1b6d42d..84aad3bfd2cfa3fcc8efbe7bc9f68ab189e28bbe 100644 (file)
@@ -342,6 +342,7 @@ free_entry (struct ServiceList *pos)
  * Actually start the process for the given service.
  *
  * @param sl identifies service to start
+ * @param lsocks -1 terminated list of listen sockets to pass (systemd style), or NULL
  */
 static void
 start_process (struct ServiceList *sl,
@@ -1001,10 +1002,12 @@ static void
 sighandler_child_death ()
 {
   static char c;
+  int old_errno = errno; /* back-up errno */
   GNUNET_break (1 == 
                GNUNET_DISK_file_write (GNUNET_DISK_pipe_handle
                                        (sigpipe, GNUNET_DISK_PIPE_END_WRITE), &c,
                                        sizeof (c)));
+  errno = old_errno; /* restore errno */
 }