PREV INDEX NEXT

Author: Unknown
Subject: [response] return 0 for background
Date: Thursday, 10 Dec 2020, 17:49:44

That's correct, and the line you print to stderr when reaping zombies includes the status of the backgrounded process. See the staff solution:

/c/cs323/Hwk5/bashLT
(1)$ none &
Backgrounded: 403681
(2)$ none: No such file or directory
printenv ?
0
Completed: 403681 (2)
(3)$
PREV INDEX NEXT