summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2017-02-08 22:07:51 +0100
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2017-02-08 22:08:06 +0100
commit510ddf697769369a81ec30f6c38d4950cd5afe88 (patch)
treedf9dbcbd6c9f853fb318602a2e3071d7c7fab60d
parent0679054c22452fa671cd0461102a3fca2a2001ad (diff)
debian: gps_proxy: Adding fflush when all devices are disconected.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r--debian/patches/0001-Adding-fflush-when-all-devices-are-disconected.patch33
-rw-r--r--debian/patches/series1
2 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/0001-Adding-fflush-when-all-devices-are-disconected.patch b/debian/patches/0001-Adding-fflush-when-all-devices-are-disconected.patch
new file mode 100644
index 0000000..e5807ac
--- /dev/null
+++ b/debian/patches/0001-Adding-fflush-when-all-devices-are-disconected.patch
@@ -0,0 +1,33 @@
+From 0f8a39421dc1bacb342d87a6f49c2d4ef6a770cc Mon Sep 17 00:00:00 2001
+From: Yossi Mansharoff <yossim@codeaurora.org>
+Date: Sun, 27 Nov 2016 15:04:47 +0200
+Subject: [PATCH] Adding fflush when all devices are disconected.
+
+Change-Id: Ib1bfd9625c8bf1baedff79ede0cbba294378d920
+---
+ gps_proxy.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/gps_proxy.c b/gps_proxy.c
+index 9980932..46a0ec2 100644
+--- a/gps_proxy.c
++++ b/gps_proxy.c
+@@ -423,6 +423,7 @@ int main(int argc, char **argv)
+ ret = ioctl(ch_fd, QGPS_IS_ACTIVE, 0);
+ if (0!=ret) {
+ dbgprintf("All clients have disconnected\n");
++ fflush(stdout);
+ break;
+ }
+ }
+@@ -432,6 +433,7 @@ int main(int argc, char **argv)
+ fprintf(stderr, "failed to send LOC_STOP");
+ goto clean;
+ }
++ fflush(stdout);
+ }
+ clean:
+ qrtr_close(gps_fd);
+--
+2.11.0
+
diff --git a/debian/patches/series b/debian/patches/series
index 101ab11..44ec5bc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
fix_makefile.patch
02_gps_userspace_exit_fix.patch
+0001-Adding-fflush-when-all-devices-are-disconected.patch