aboutsummaryrefslogtreecommitdiff
path: root/lib/process.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-05-08 15:02:45 -0700
committerBen Pfaff <blp@nicira.com>2013-06-10 13:48:12 -0700
commitff412c8c09041196bdb5691d4f75bd8540b630c9 (patch)
tree981b325edd41253dae458b2c8f24780ed2d4bd78 /lib/process.c
parent57d90319a6deeb59e23227878a39f92470ac3e2b (diff)
process: Add thread safety comments.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/process.c')
-rw-r--r--lib/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/process.c b/lib/process.c
index 520502a8..03e00ce1 100644
--- a/lib/process.c
+++ b/lib/process.c
@@ -60,6 +60,8 @@ static void sigchld_handler(int signr OVS_UNUSED);
/* Initializes the process subsystem (if it is not already initialized). Calls
* exit() if initialization fails.
*
+ * This function may not be called after creating any additional threads.
+ *
* Calling this function is optional; it will be called automatically by
* process_start() if necessary. Calling it explicitly allows the client to
* prevent the process from exiting at an unexpected time. */
@@ -164,6 +166,8 @@ process_register(const char *name, pid_t pid)
* argv[0] is used as the name of the process. Searches the PATH environment
* variable to find the program to execute.
*
+ * This function may not be called after creating any additional threads.
+ *
* All file descriptors are closed before executing the subprocess, except for
* fds 0, 1, and 2.
*