diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-01-10 13:57:49 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-01-11 07:40:41 +1100 |
commit | c4006ce84445df8dda3dc82a39c1cd2635e375f4 (patch) | |
tree | f527e7d6ea33eb2c51092a92ab32c196afae2d4b /ctdb/server/ctdb_persistent.c | |
parent | ea0df6d88285de9f39182858833df450b14be53b (diff) | |
download | samba-c4006ce84445df8dda3dc82a39c1cd2635e375f4.tar.gz |
Add ctdb_fork(0 which will fork a child process and drop the real-time
scheduler for the child.
Use ctdb_fork() from callers where we dont want the child to be running
at real-time privilege.
(This used to be ctdb commit 58795a4c9e0624e20fa3e0023b65127053edd103)
Diffstat (limited to 'ctdb/server/ctdb_persistent.c')
-rw-r--r-- | ctdb/server/ctdb_persistent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_persistent.c b/ctdb/server/ctdb_persistent.c index 9346f7d0da4..f9a20510c98 100644 --- a/ctdb/server/ctdb_persistent.c +++ b/ctdb/server/ctdb_persistent.c @@ -524,7 +524,7 @@ struct childwrite_handle *ctdb_childwrite(struct ctdb_db_context *ctdb_db, return NULL; } - result->child = fork(); + result->child = ctdb_fork(ctdb_db->ctdb); if (result->child == (pid_t)-1) { close(result->fd[0]); |