0

Is there a way to get the exit status of a child process created by fork() system call without the parent process pausing/waiting for its execution?

Specifically I need to print out the status of the exited process after it's done, but with the parent process continuing to do its thing in the meantime.

Still a beginner here; so as far as I know, you can't do that without using wait() and then testing it with the macros.

Toby Speight
  • 27,591
  • 48
  • 66
  • 103
Arcturus
  • 242
  • 1
  • 8

0 Answers0