projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4879d7
)
tools: Fix missing handling of signalfd read results
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 27 May 2011 17:01:30 +0000
(10:01 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 27 May 2011 17:01:30 +0000
(10:01 -0700)
tools/get-location.c
patch
|
blob
|
history
diff --git
a/tools/get-location.c
b/tools/get-location.c
index
ae156b9
..
620a7cc
100644
(file)
--- a/
tools/get-location.c
+++ b/
tools/get-location.c
@@
-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;