When compiling on windows the poll() function checks childcreated value which exists but it's never set to to true, the only code paths that ever set it to true are not compiled on windows so this effectively makes the function always return -1. After this change processes on windows return the proper exit code.
When compiling on windows the poll() function checks childcreated value which exists but it's never set to to true, the only code paths that ever set it to true are not compiled on windows so this effectively makes the function always return -1. After this change processes on windows return the proper exit code.