Turn On/Off pids on notifying other processes.
[wsti_so.git] / src / bootstrap.c
index c8ae5bcd92953985d778f22a5a664cdc309f600a..070dac8f88ad96961ddcd2187c9b0e937543f9c5 100644 (file)
@@ -10,6 +10,9 @@
 /** Number of processes to spawn */
 #define PROCESS_NUMBER 3
 
+/**
+ * Processes to spawn (programs to be execl'ed)
+ */
 char * processes[PROCESS_NUMBER] = {
        "process1",
        "process2",
@@ -61,6 +64,7 @@ int main(void) {
                        fprintf(stderr, "[%s] Something went wrong when forking %s. Error: %s\n",
                                "bootstrap", processes[i], strerror(errno));
                }
+               sleep(1);
        }
 
        /* All processes should be now spawned. Close bootstrap program. */