1. Engineering
  2. Computer Science
  3. if line 293 from 3000shellc is removed pid waitretstatus...

Question: if line 293 from 3000shellc is removed pid waitretstatus...

Question details

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? 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.\n, 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);

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution