4 /* strerror, and errno family.. */
10 /** Number of processes to spawn */
11 #define PROCESS_NUMBER 3
13 char * processes[PROCESS_NUMBER] = {
20 * Bootstrap program used for starting all three main processes.
28 for (; i < PROCESS_NUMBER; i++) {
29 fprintf(stderr, "[%s] Forking process %d\n", "bootstrap", i);
32 /* If it is child fork */
34 err = execl(processes[i], processes[i], NULL);
37 * According to manual, this will only occur
38 * if there was an error in execl
41 fprintf(stderr, "[%s] Something went wrong when spawning %s. Error: %s\n",
42 "bootstrap", processes[i], strerror(errno));
47 /* All processes should be now spawned. Close bootstrap program. */