gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13545 - in gnunet/src: include util


From: gnunet
Subject: [GNUnet-SVN] r13545 - in gnunet/src: include util
Date: Thu, 4 Nov 2010 11:12:20 +0100

Author: nevans
Date: 2010-11-04 11:12:20 +0100 (Thu, 04 Nov 2010)
New Revision: 13545

Modified:
   gnunet/src/include/gnunet_os_lib.h
   gnunet/src/util/os_priority.c
Log:
replacing GNUNET_OS_process_get_pid

Modified: gnunet/src/include/gnunet_os_lib.h
===================================================================
--- gnunet/src/include/gnunet_os_lib.h  2010-11-04 10:05:39 UTC (rev 13544)
+++ gnunet/src/include/gnunet_os_lib.h  2010-11-04 10:12:20 UTC (rev 13545)
@@ -204,6 +204,15 @@
  */
 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

Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c       2010-11-04 10:05:39 UTC (rev 13544)
+++ gnunet/src/util/os_priority.c       2010-11-04 10:12:20 UTC (rev 13545)
@@ -101,6 +101,18 @@
 #endif
 }
 
+/**
+ * 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)
+{
+  return proc->pid;
+}
 
 void
 GNUNET_OS_process_close (struct GNUNET_OS_Process *proc)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]