Commit a0797d57 authored by Milan Crha's avatar Milan Crha
Browse files

Use SIGTERM instead of SIGQUIT in killev (evolution --force-shutdown)

The SIGQUIT behaves like a crash and coredump can be stored even though
it's not a real crash. The factories and other tools handle SIGTERM gracefully,
thus it's the right signal to use, not SIGQUIT.
parent 67d5a375
......@@ -162,15 +162,15 @@ main (gint argc,
kill:
#ifdef KILL_PROCESS_COMMAND
if (system (KILL_PROCESS_COMMAND " -QUIT evolution 2> /dev/null") == -1)
if (system (KILL_PROCESS_COMMAND " -TERM evolution 2> /dev/null") == -1)
g_warning ("%s: Failed to execute: '%s'", G_STRFUNC, KILL_PROCESS_COMMAND);
if (system (KILL_PROCESS_COMMAND " -TERM evolution-alarm-notify 2> /dev/null") == -1)
g_warning ("%s: Failed to execute: '%s'", G_STRFUNC, KILL_PROCESS_COMMAND);
if (system (KILL_PROCESS_COMMAND " -QUIT evolution-source-registry 2> /dev/null") == -1)
if (system (KILL_PROCESS_COMMAND " -TERM evolution-source-registry 2> /dev/null") == -1)
g_warning ("%s: Failed to execute: '%s'", G_STRFUNC, KILL_PROCESS_COMMAND);
if (system (KILL_PROCESS_COMMAND " -QUIT evolution-addressbook-factory 2> /dev/null") == -1)
if (system (KILL_PROCESS_COMMAND " -TERM evolution-addressbook-factory 2> /dev/null") == -1)
g_warning ("%s: Failed to execute: '%s'", G_STRFUNC, KILL_PROCESS_COMMAND);
if (system (KILL_PROCESS_COMMAND " -QUIT evolution-calendar-factory 2> /dev/null") == -1)
if (system (KILL_PROCESS_COMMAND " -TERM evolution-calendar-factory 2> /dev/null") == -1)
g_warning ("%s: Failed to execute: '%s'", G_STRFUNC, KILL_PROCESS_COMMAND);
#else
g_printerr ("No \"kill\" command available.\n");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment