From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: spawn and wait? 30 Dec 1997 23:44:35 -0800 Message-ID: <01BD15D5.A72D67B0.cygnus.gnu-win32@gater.krystalbank.msk.ru> To: "gnu-win32 AT cygnus DOT com" , "'cgf AT bbc DOT com'" Christopher Faylor wrote: > Actually if you are running a recent coolview, then I believe that Sergey > has made cwait and wait interchangeable. Yes, you're absolutely right. Here is an extract from spawn code: else if ((mode == _P_NOWAIT) || (mode == _P_NOWAITO)) { res = pid; } CloseHandle (pi.hThread); return (int) res; And cwait implementation: extern "C" int cwait (int *result, int pid, int) { return waitpid (pid, result, 0); } In original b18 cygwin.dll spawn(_P_NOWAIT) returned win32 child process's handle and cwait() waited on that handle. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia Looking for a job. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".