aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-27 10:16:40 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-27 10:18:59 +0800
commitc6727d66ade72df6fbaff9f111a06993aeefdecc (patch)
tree85f609c96e7606251b26f46e1b64ddb47ce4a61e /shell/main.c
parent4837f2a2530c35c8f7076817e1341ddcf05b4ef7 (diff)
downloadgsoc2013-evolution-c6727d66ade72df6fbaff9f111a06993aeefdecc.tar.gz
gsoc2013-evolution-c6727d66ade72df6fbaff9f111a06993aeefdecc.tar.zst
gsoc2013-evolution-c6727d66ade72df6fbaff9f111a06993aeefdecc.zip
Implement a new 'killev' program.
For now this only terminates Evolution, but the same basic approach should also be used with the Evolution-Data-Server D-Bus services.
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/shell/main.c b/shell/main.c
index 396cd690fa..c37ccc4d6c 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -390,26 +390,10 @@ set_paths (void)
static void G_GNUC_NORETURN
shell_force_shutdown (void)
{
- gchar *program;
+ gchar *filename;
- /* This is not as destructive as it was in the Bonobo era.
- * The Evolution-Data-Server D-Bus services should not be killed
- * because other programs may be using them. The alarm daemon is
- * an autostart program now and Evolution no longer spawns it, so
- * that should not be killed either. The only thing left to do
- * really is shoot ourselves. */
-
- /* XXX Maybe --force-shutdown should be deprecated. */
-
- program = g_find_program_in_path ("pkill");
-
- if (program == NULL) {
- g_printerr ("Could not find `pkill' program in path.\n");
- exit (1);
- }
-
- /* This does not return. */
- execl (program, "pkill", "evolution", NULL);
+ filename = g_build_filename (EVOLUTION_TOOLSDIR, "killev", NULL);
+ execl (filename, "killev", NULL);
g_assert_not_reached ();
}