It's not that, ERROR_NOT_ENOUGH_QUOTA is returned from AssignProcessToJobObject, but the process is randomly killed with an exit code of 0 instead.
And the other process is killed with 0 otherwise winetest_wait_child_process would complain, unless TerminateProcess overwrites the exiting exit code.
On Mon, 2015-02-16 at 10:40 +0100, Hans Leidekker wrote:
It looks like race condition. You create two processes and expect the second one to hit the limit but it seems to me that it could be the first as well.