]> git.ipfire.org Git - thirdparty/gcc.git/commit
expect.c (__gnat_kill): Fix implementation...
authorPascal Obry <obry@adacore.com>
Tue, 15 Nov 2005 13:57:56 +0000 (14:57 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 15 Nov 2005 13:57:56 +0000 (14:57 +0100)
commit379ecbfacf3272e1c12b5ac930155ea6f5367a71
treea05042bd8367388bbe2377d8298b4111af9eaae7
parent6ce0c3f5ed442fe46a2ba21de5a437704791dae5
expect.c (__gnat_kill): Fix implementation...

2005-11-14  Pascal Obry  <obry@adacore.com>

* expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
by spawnve is a process handle, no need to convert. Add a parameter
close to control wether the process handle must be closed.
(__gnat_waitpid): Fix implementation, the pid returned by spawnve is
a process handle, not need to convert.
(__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.

* g-expect.adb: (Kill): Document the new close parameter.
(Close): Do not release the process handle in the kill there as
waitpid() is using it.
(Send_Signal): Release the process handle.

From-SVN: r106974
gcc/ada/expect.c
gcc/ada/g-expect.adb