commit | 32f8d34d0493288f54996ad71e59b8120b05d8f2 | [log] [tgz] |
---|---|---|
author | Barret Rhoden <brho@cs.berkeley.edu> | Fri Jan 17 17:08:12 2014 -0800 |
committer | Barret Rhoden <brho@cs.berkeley.edu> | Fri Jan 17 17:08:12 2014 -0800 |
tree | 4861ecac38b51cde3039ae12489fd56754126e5c | |
parent | 2bde5aef80a86425525ac3bab7611639953c98fc [diff] |
Properly refcnt child processes Parents hold a ref on their children. We didn't incref for this. For forked processes, this was working, since we failed to decref. Spawn, which decreffed properly, blew up. I think the ksched still had a copy of the proc, in this case, and it tried to run it. The kref check (can't incref when 0) caught this.