Multiple choice

Which of the following system calls does not return control to the calling point on termination?

  1. fork

  2. exec

  3. ioctl

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The exec overlays the calling process with the named file, then transfer to the entry point of the core image of the file. It does not return from a successfull exec call, the calling core image is lost. Because, exec family calls overlays the address space of the process that executed it. So, no chance of getting back to it.