mirror of git://git.sysmocom.de/ofono
tools: Fix missing handling of signalfd read results
This commit is contained in:
parent
b4879d72d8
commit
ebb82bee81
|
@ -171,6 +171,9 @@ static gboolean signal_cb(GIOChannel *channel, GIOCondition cond, gpointer data)
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
|
||||||
len = read(signal_fd, &si, sizeof(si));
|
len = read(signal_fd, &si, sizeof(si));
|
||||||
|
if (len < 0)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
g_main_loop_quit(event_loop);
|
g_main_loop_quit(event_loop);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue