commit cerbere for openSUSE:Factory
Hello community, here is the log from the commit of package cerbere for openSUSE:Factory checked in at 2019-07-30 12:38:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cerbere (Old) and /work/SRC/openSUSE:Factory/.cerbere.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "cerbere" Tue Jul 30 12:38:44 2019 rev:4 rq:719681 version:2.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/cerbere/cerbere.changes 2018-12-24 11:47:09.297146314 +0100 +++ /work/SRC/openSUSE:Factory/.cerbere.new.4126/cerbere.changes 2019-07-30 12:38:46.954939121 +0200 @@ -1,0 +2,7 @@ +Tue Jul 16 15:30:21 UTC 2019 - Alexei Podvalsky <avvissu@yandex.by> + +- Update to 2.5.0: + * Handle SIGHUP for clean shutdown (#31) + * Handle SIGTERM for clean shutdown (#29) + +------------------------------------------------------------------- Old: ---- cerbere-0.2.4.tar.gz New: ---- cerbere-2.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cerbere.spec ++++++ --- /var/tmp/diff_new_pack.oYzq3o/_old 2019-07-30 12:38:47.490939053 +0200 +++ /var/tmp/diff_new_pack.oYzq3o/_new 2019-07-30 12:38:47.490939053 +0200 @@ -18,7 +18,7 @@ Name: cerbere -Version: 0.2.4 +Version: 2.5.0 Release: 0 Summary: A service to relaunch Pantheon apps License: GPL-2.0-or-later ++++++ cerbere-0.2.4.tar.gz -> cerbere-2.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cerbere-0.2.4/meson.build new/cerbere-2.5.0/meson.build --- old/cerbere-0.2.4/meson.build 2018-07-27 06:02:43.000000000 +0200 +++ new/cerbere-2.5.0/meson.build 2019-07-11 16:21:02.000000000 +0200 @@ -1,7 +1,7 @@ project( 'io.elementary.cerbere', 'vala', 'c', - version: '0.2.4' + version: '2.5.0' ) install_path = join_paths(get_option('prefix'), get_option('libexecdir')) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cerbere-0.2.4/src/Cerbere.vala new/cerbere-2.5.0/src/Cerbere.vala --- old/cerbere-0.2.4/src/Cerbere.vala 2018-07-27 06:02:43.000000000 +0200 +++ new/cerbere-2.5.0/src/Cerbere.vala 2019-07-11 16:21:02.000000000 +0200 @@ -68,13 +68,16 @@ if (sm_client != null) { // The session manager may ask us to quit the service, and so we do. sm_client.stop_service.connect (quit_service); + // Cleanly shutdown when receiving SIGTERM or SIGHUP. + Posix.signal (Posix.Signal.TERM, handle_sigterm); + Posix.signal (Posix.Signal.HUP, handle_sighup); } } private void start_processes (string[] process_list) { if (watchdog == null) watchdog = new Watchdog (); - + foreach (string cmd in process_list) watchdog.add_process (cmd); } @@ -84,6 +87,16 @@ release (); } + private void handle_sigterm () { + message ("Closing Cerbere as requested via SIGTERM"); + release (); + } + + private void handle_sighup () { + message ("Closing Cerbere as requested via SIGHUP"); + release (); + } + public static int main (string[] args) { var app = new Cerbere.App (); return app.run (args);
participants (1)
-
root