Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] Use STOPPING=1 when shutting down
@ 2017-04-07 19:57 Mario Lang
  0 siblings, 0 replies; only message in thread
From: Mario Lang @ 2017-04-07 19:57 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Mario Lang

Quoting sd_notify(3):

STOPPING=1
    Tells the service manager that the service is beginning its shutdown.
---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index bcc1e6f..122b028 100644
--- a/src/main.c
+++ b/src/main.c
@@ -707,7 +707,7 @@ int main(int argc, char *argv[])
 
 	g_main_loop_run(event_loop);
 
-	sd_notify(0, "STATUS=Quitting");
+	sd_notify(0, "STOPPING=1\nSTATUS=Quitting");
 
 	g_source_remove(signal);
 
-- 
2.9.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-07 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-07 19:57 [PATCH BlueZ] Use STOPPING=1 when shutting down Mario Lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox