Linux bluetooth development
 help / color / mirror / Atom feed
From: Mario Lang <mlang@delysid.org>
To: linux-bluetooth@vger.kernel.org
Cc: Mario Lang <mlang@delysid.org>
Subject: [PATCH BlueZ] Use STOPPING=1 when shutting down
Date: Fri,  7 Apr 2017 21:57:02 +0200	[thread overview]
Message-ID: <20170407195702.9990-1-mlang@delysid.org> (raw)

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


                 reply	other threads:[~2017-04-07 19:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170407195702.9990-1-mlang@delysid.org \
    --to=mlang@delysid.org \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox