[gnome-chess] Engine: do not kill until pid is closed
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Engine: do not kill until pid is closed
- Date: Sun, 13 Oct 2013 19:14:02 +0000 (UTC)
commit 6ed120deb43069cb8ae9ef81ac99ac390b523b96
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Oct 13 12:39:11 2013 -0500
Engine: do not kill until pid is closed
"Note that on platforms where GPid must be explicitly closed (see
g_spawn_close_pid()) pid must not be closed while the source is still
active.
src/chess-engine.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/chess-engine.vala b/src/chess-engine.vala
index 9e7b084..2ed478a 100644
--- a/src/chess-engine.vala
+++ b/src/chess-engine.vala
@@ -109,8 +109,8 @@ public abstract class ChessEngine : Object
if (pid != 0)
{
- Posix.kill (pid, Posix.SIGTERM);
Process.close_pid (pid);
+ Posix.kill (pid, Posix.SIGTERM);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]