-code deduplication in rsa sign/verify code
[oweals/gnunet.git] / src / util / os_priority.c
index 33c84e80436373b513d20ffca4455568f8388223..20d54341dbea9bfc6d5c4f8681006d1ebf1e381e 100644 (file)
@@ -860,7 +860,10 @@ start_process (int pipe_control,
     return NULL; /* not executable */
   if ( (GNUNET_YES == pipe_control) &&
        (GNUNET_OK != npipe_setup (&childpipename)) )
-    return NULL;  
+  {
+    GNUNET_free (childpipename);
+    return NULL;
+  }
   if (NULL != pipe_stdout)
   {
     GNUNET_assert (GNUNET_OK ==
@@ -1342,7 +1345,7 @@ start_process (int pipe_control,
   {
     ssize_t wrote;
     uint64_t size;
-    unsigned int count;
+    uint64_t count;
     unsigned int i;
 
     /* Tell the number of sockets */
@@ -1533,6 +1536,10 @@ GNUNET_OS_start_process (int pipe_control,
  * Start a process.
  *
  * @param pipe_control should a pipe be used to send signals to the child?
+ * @param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags controlling which
+ *        std handles of the parent are inherited by the child.
+ *        pipe_stdin and pipe_stdout take priority over std_inheritance
+ *        (when they are non-NULL).
  * @param lsocks array of listen sockets to dup systemd-style (or NULL);
  *         must be NULL on platforms where dup is not supported
  * @param filename name of the binary