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
  • 25,191
  • 47
  • 61
  • 93
Arcturus
  • 228
  • 1
  • 7

0 Answers0