aboutsummaryrefslogtreecommitdiffstats
path: root/erts/epmd/src/epmd.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-04-14 18:09:37 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-04-14 18:09:37 +0200
commit43da27568b55d664ef8abc9b125e54ec8674603e (patch)
tree4df765771a716626e524f23a76a502d77452d213 /erts/epmd/src/epmd.c
parent965aabe043074edbeca06ee2083c06be731c939b (diff)
parent16b921ad1c847ba0754adc10d2d45b17973dcd19 (diff)
downloadotp-43da27568b55d664ef8abc9b125e54ec8674603e.tar.gz
otp-43da27568b55d664ef8abc9b125e54ec8674603e.tar.bz2
otp-43da27568b55d664ef8abc9b125e54ec8674603e.zip
Merge branch 'binarin/erts/fix-epmd-systemd-notifications/PR-999/OTP-13493'
* binarin/erts/fix-epmd-systemd-notifications/PR-999/OTP-13493: Don't send unasked for systemd notifications
Diffstat (limited to 'erts/epmd/src/epmd.c')
-rw-r--r--erts/epmd/src/epmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/erts/epmd/src/epmd.c b/erts/epmd/src/epmd.c
index b36f4ccd40..44e997e609 100644
--- a/erts/epmd/src/epmd.c
+++ b/erts/epmd/src/epmd.c
@@ -592,8 +592,10 @@ void epmd_cleanup_exit(EpmdVars *g, int exitval)
free(g->argv);
}
#ifdef HAVE_SYSTEMD_DAEMON
- sd_notifyf(0, "STATUS=Exited.\n"
- "ERRNO=%i", exitval);
+ if (g->is_systemd){
+ sd_notifyf(0, "STATUS=Exited.\n"
+ "ERRNO=%i", exitval);
+ }
#endif /* HAVE_SYSTEMD_DAEMON */
exit(exitval);
}