Question: 0 Loser une BULUWE PURA include catdio.h> include cotdlib.h> include itd.h extern char environ int main() char args[] /bin/she /bin/lo'NULL pidt pid fork (); ir

0 Loser une BULUWE PURA include catdio.h> include cotdlib.h> include itd.h extern char environ int main() char args[] /bin/she /bin/lo'NULL pidt pid fork (); ir pido) 1. child. printf"child "); exeeve (args[0), sargs[0]. NULL); else if (pid > 0) 1.parent / printf("parent "); return 0; The program forks a child process, and executes the bin Is program using /bin/sh, which is a symbolic link to /bin/bash. The program is executed as the following. Explain what the output of the program will be and why. $ gee prog.c- prog 8 export to acho hallo 8 /prog ) echo world: 0 Loser une BULUWE PURA include catdio.h> include cotdlib.h> include itd.h extern char environ int main() char args[] /bin/she /bin/lo'NULL pidt pid fork (); ir pido) 1. child. printf"child "); exeeve (args[0), sargs[0]. NULL); else if (pid > 0) 1.parent / printf("parent "); return 0; The program forks a child process, and executes the bin Is program using /bin/sh, which is a symbolic link to /bin/bash. The program is executed as the following. Explain what the output of the program will be and why. $ gee prog.c- prog 8 export to acho hallo 8 /prog ) echo world
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
