Re: [lxc-devel] [PATCH] fix wait status in pid reuse case

2013-04-08 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > Commit 37c3dfc9 sets the wait status on only the child pid. It > intended to match the pid only once to protect against pid reuse but it > won't because the indicator was reset to 0 every time at the top of the > loop. If the child pid is reused, th

[lxc-devel] [PATCH] fix wait status in pid reuse case

2013-04-08 Thread Dwight Engen
Commit 37c3dfc9 sets the wait status on only the child pid. It intended to match the pid only once to protect against pid reuse but it won't because the indicator was reset to 0 every time at the top of the loop. If the child pid is reused, the wait status will be set again. Fix by setting indicato