tianyupu / comp3520ass1

Simple UNIX-like shell written in C
0 stars 0 forks source link

processes spawned in the background remain in the process table as <defunct> #2

Open tianyupu opened 12 years ago

tianyupu commented 12 years ago
sleep 10 &
ps

After 10 seconds the sleep process has finished but running ps again shows it as <defunct>. It's probably not had waitpid called on it.

This doesn't appear to be an issue if the background operator & is not involved.