Fix silly deprecation warning

This commit is contained in:
Michael Catanzaro 2018-07-27 18:01:46 -05:00
parent 9bc94a14ee
commit 134b501bf6

View file

@ -185,7 +185,7 @@ public abstract class ChessEngine : Object
Source.remove (child_watch_id);
child_watch_id = 0;
if (kill_engine && Posix.kill (pid, Posix.SIGTERM) == -1)
if (kill_engine && Posix.kill (pid, Posix.Signal.TERM) == -1)
warning ("Failed to kill engine: %s", strerror (errno));
Process.close_pid (pid);
pid = 0;