dovecot-2.2: doveadm: Added doveadm_killed_signo()

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 16 11:16:55 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/a58b3e70fc8a
changeset: 18863:a58b3e70fc8a
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 16 14:12:33 2015 +0300
description:
doveadm: Added doveadm_killed_signo()

diffstat:

 src/doveadm/doveadm-mail.c |  5 +++++
 src/doveadm/doveadm-mail.h |  1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r d255f8627d95 -r a58b3e70fc8a src/doveadm/doveadm-mail.c
--- a/src/doveadm/doveadm-mail.c	Tue Jun 16 00:29:07 2015 +0300
+++ b/src/doveadm/doveadm-mail.c	Tue Jun 16 14:12:33 2015 +0300
@@ -45,6 +45,11 @@
 	return killed_signo != 0;
 }
 
+int doveadm_killed_signo(void)
+{
+	return killed_signo;
+}
+
 void doveadm_mail_failed_error(struct doveadm_mail_cmd_context *ctx,
 			       enum mail_error error)
 {
diff -r d255f8627d95 -r a58b3e70fc8a src/doveadm/doveadm-mail.h
--- a/src/doveadm/doveadm-mail.h	Tue Jun 16 00:29:07 2015 +0300
+++ b/src/doveadm/doveadm-mail.h	Tue Jun 16 14:12:33 2015 +0300
@@ -112,6 +112,7 @@
 extern char doveadm_mail_cmd_hide;
 
 bool doveadm_is_killed(void);
+int doveadm_killed_signo(void);
 
 bool doveadm_mail_try_run(const char *cmd_name, int argc, char *argv[]);
 void doveadm_mail_register_cmd(const struct doveadm_mail_cmd *cmd);


More information about the dovecot-cvs mailing list