tools: Fix missing handling of signalfd read results

This commit is contained in:
Marcel Holtmann 2011-05-27 10:01:30 -07:00
parent b4879d72d8
commit ebb82bee81
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ static gboolean signal_cb(GIOChannel *channel, GIOCondition cond, gpointer data)
ssize_t len;
len = read(signal_fd, &si, sizeof(si));
if (len < 0)
return TRUE;
g_main_loop_quit(event_loop);
return TRUE;