2 gcc fork_execlp.c -o fork_execlp -Wall -W -Wextra -ansi -pedantic */
14 if ((pid
= fork()) < 0) { /* fork error */
19 else if (pid
> 0) /* parent process */
22 else { /* child process (pid = 0) */
23 if (execlp("date", "date", (char *)0) < 0) {
29 /* whatever goes here, will be executed from the
30 parent AND the child process as well */