Skip to content

Commit

Permalink
[dsme] Delete processwd before disconnecting dsme socket. Fixes JB#37778
Browse files Browse the repository at this point in the history
If dsme sees clients that utilize process watchdog disconnecting, it will
throw a SIGKILL at the misbehaving clients.

Remove mce process watchdog before closing dsme connection.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Feb 15, 2017
1 parent b77c0ce commit 81e80d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mce-dsme.c
Expand Up @@ -728,6 +728,9 @@ static bool mce_dsme_socket_connect(void)
*/
static void mce_dsme_socket_disconnect(void)
{
if( mce_dsme_socket_is_connected() )
mce_dsme_processwd_quit();

if( mce_dsme_socket_recv_id ) {
mce_log(LL_DEBUG, "Removing DSME socket notifier");
g_source_remove(mce_dsme_socket_recv_id);
Expand Down

0 comments on commit 81e80d3

Please sign in to comment.