[tracker/wip/carlosg/compiler-warnings: 7/10] tracker-store: Use Posix.Signal.*
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/compiler-warnings: 7/10] tracker-store: Use Posix.Signal.*
- Date: Fri, 12 Oct 2018 10:21:39 +0000 (UTC)
commit d98b807814071efd75d8da92fb1c1cc61c12d848
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Oct 1 01:19:02 2018 +0200
tracker-store: Use Posix.Signal.*
Posix.SIG* is deprecated since Vala 0.40
src/tracker-store/tracker-main.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-store/tracker-main.vala b/src/tracker-store/tracker-main.vala
index 35eafb212..478076278 100644
--- a/src/tracker-store/tracker-main.vala
+++ b/src/tracker-store/tracker-main.vala
@@ -109,8 +109,8 @@ License which can be viewed at:
}
switch (signo) {
- case Posix.SIGTERM:
- case Posix.SIGINT:
+ case Posix.Signal.TERM:
+ case Posix.Signal.INT:
in_loop = true;
do_shutdown ();
@@ -131,8 +131,8 @@ License which can be viewed at:
}
static void initialize_signal_handler () {
- Unix.signal_add (Posix.SIGTERM, () => signal_handler (Posix.SIGTERM));
- Unix.signal_add (Posix.SIGINT, () => signal_handler (Posix.SIGINT));
+ Unix.signal_add (Posix.Signal.TERM, () => signal_handler (Posix.Signal.TERM));
+ Unix.signal_add (Posix.Signal.INT, () => signal_handler (Posix.Signal.INT));
}
static void initialize_priority () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]