# | Line 122 | Line 122 | ray_pclose( /* close one or more child processes */ | |
---|---|---|
122 | int nsub | |
123 | ) | |
124 | { | |
125 | < | if (nsub > ray_pnprocs) |
125 | > | if ((nsub <= 0) | (nsub > ray_pnprocs)) |
126 | nsub = ray_pnprocs; | |
127 | ray_pnprocs -= nsub; | |
128 | if ((ray_pnidle -= nsub) < 0) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |