expect.c (__gnat_expect_portable_execvp): New implementation.
authorPascal Obry <obry@adacore.com>
Wed, 15 Feb 2006 09:39:28 +0000 (10:39 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 15 Feb 2006 09:39:28 +0000 (10:39 +0100)
commit0273bbb409468d108c9f1c316c7d1e9f554c7275
tree38f6bb932b194a9cf72a72ab305f4c9b4bbca977
parentd48e258e71954c337635c94cc21c8d046a7e1042
expect.c (__gnat_expect_portable_execvp): New implementation.

2006-02-13  Pascal Obry  <obry@adacore.com>

* expect.c (__gnat_expect_portable_execvp): New implementation. The
previous implementation was using the C runtime spawnve routine but
the corresponding wait was using directly the Win32 API. This was
causing some times a lock when waiting for an event using
WaitForSingleObject in __gnat_waitpid. This new implementation uses
the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
API fixes this problem.

From-SVN: r111066
gcc/ada/expect.c