Track all child process so we never send a signal to an unrelated process (our child...
[sfrench/samba-autobuild/.git] / ctdb / common / ctdb_util.c
index 5584c1732e548e2d5c516444dc13793565d53b58..b9af95bfb1be52596cd6e3b2811b1e5c1fae9287 100644 (file)
@@ -332,24 +332,6 @@ void ctdb_restore_scheduler(struct ctdb_context *ctdb)
 #endif
 }
 
-/*
- * This function forks a child process and drops the realtime 
- * scheduler for the child process.
- */
-pid_t ctdb_fork(struct ctdb_context *ctdb)
-{
-       pid_t pid;
-
-       pid = fork();
-       if (pid == 0) {
-               if (ctdb->do_setsched) {
-                       ctdb_restore_scheduler(ctdb);
-               }
-               ctdb->can_send_controls = false;
-       }
-       return pid;
-}
-
 void set_nonblocking(int fd)
 {
        unsigned v;