SHUTDOWN
[oweals/gnunet.git] / src / include / gnunet_os_lib.h
index bb29e89df807fa418c083f7e8c3aed07146e1fc8..7bd65adcbde19279c789c1611446ba59703acb45 100644 (file)
@@ -188,7 +188,7 @@ struct GNUNET_OS_Process *GNUNET_OS_process_current (void);
 
 
 /**
- * Sends @sig to the process
+ * Sends sig to the process
  *
  * @param proc pointer to process structure
  * @param sig signal
@@ -204,6 +204,15 @@ int GNUNET_OS_process_kill (struct GNUNET_OS_Process *proc, int sig);
  */
 void GNUNET_OS_process_close (struct GNUNET_OS_Process *proc);
 
+/**
+ * Get the pid of the process in question
+ *
+ * @param proc the process to get the pid of
+ *
+ * @return the current process id
+ */
+pid_t
+GNUNET_OS_process_get_pid (struct GNUNET_OS_Process *proc);
 
 /**
  * Set process priority
@@ -265,6 +274,14 @@ int GNUNET_OS_process_status (struct GNUNET_OS_Process *proc,
 int GNUNET_OS_process_wait (struct GNUNET_OS_Process *proc);
 
 
+/**
+ * Connects this process to its parent via pipe
+ */
+void
+GNUNET_OS_install_parent_control_handler (void *cls,
+                                          const struct
+                                          GNUNET_SCHEDULER_TaskContext * tc);
+
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
 #endif