if (!(result = fork())) {/ * child in control */ … }/ * parent in control */ if (result < 0) { printf(“fork failed”); exit(1); }