Question: If line 293 from 3000shell.c is removed, pid = wait(ret_status);, how will the behavior of 3000shell change? How would the behaviour of 3000shell change if

If line 293 from 3000shell.c is removed, pid = wait(ret_status);, how will the behavior of 3000shell change? How would the behaviour of 3000shell change if lines 299 and 300 were removed? If line 293 from 3000shell.c is removed, pid = wait(ret_status);, how will

pid - fork); if (pid) 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 if (background) fprintf (stderr, "Process pid); %d running in the background. ", else pid - wait(ret_status); else find binary(args[e], path, bin fn, BUFFER SIZE) if (execve(bin_fn, args, envp)) puts (strerror(errno)); exit(127)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!