From 4710bfbfe3add2a284be1dd63b805f170acc4cb7 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 15 May 2003 15:57:34 +0000 Subject: #ifdef'ed wombat killing code, depending on whether KILL_PROCESS_CMD is 2003-05-15 Rodrigo Moya * main.c: #ifdef'ed wombat killing code, depending on whether KILL_PROCESS_CMD is defined or not. (kill_wombat): kill also the alarm daemon process. svn path=/trunk/; revision=21190 --- shell/ChangeLog | 6 ++++++ shell/main.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/shell/ChangeLog b/shell/ChangeLog index 2a81ecd81f..d48f6c08af 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2003-05-15 Rodrigo Moya + + * main.c: #ifdef'ed wombat killing code, depending on whether + KILL_PROCESS_CMD is defined or not. + (kill_wombat): kill also the alarm daemon process. + 2003-05-15 Ettore Perazzoli [Patch from Antonio Xu , #42491] diff --git a/shell/main.c b/shell/main.c index 37cb7cdc8b..02bc4818d6 100644 --- a/shell/main.c +++ b/shell/main.c @@ -171,6 +171,8 @@ shell_weak_notify (void *data, } +#ifdef KILL_PROCESS_CMD + static void kill_wombat (void) { @@ -178,6 +180,9 @@ kill_wombat (void) system (KILL_PROCESS_CMD " -9 lt-evolution-wombat 2> /dev/null"); system (KILL_PROCESS_CMD " -9 evolution-wombat 2> /dev/null"); + + system (KILL_PROCESS_CMD " -9 lt-evolution-alarm-notify 2> /dev/null"); + system (KILL_PROCESS_CMD " -9 evolution-alarm-notify 2> /dev/null"); } static void @@ -216,6 +221,7 @@ kill_old_wombat (void) CORBA_Object_release (iface, &ev); CORBA_exception_free (&ev); } +#endif /* Warning dialog to scare people off a little bit. */ @@ -350,7 +356,9 @@ idle_cb (void *data) gboolean display_default; gboolean displayed_any; +#ifdef KILL_PROCESS_CMD kill_old_wombat (); +#endif CORBA_exception_init (&ev); -- cgit