#include
#include
#include
#include
int main(void)
{
pid_t pid;
pid = fork();
if (pid != 0) {
/* Parent */
int status;
wait(&status);
/* == waitpid(pid, &status, 0) */
printf(Child returned %d
,
WEXITSTATUS(status));
} else {
/* Child */
printf(Will exit soon!
);
exit(42);
}
return 0;
}

![[SOLVED] CS #include](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[SOLVED] COP 3223 Program #4: Turtle Time and List Power](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.