Mercurial > dovecot > original-hg > dovecot-1.2
changeset 911:7f92d2100795 HEAD
Call login_process_abormal_exit() only if it was login processes that died..
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 06 Jan 2003 17:09:13 +0200 |
parents | e757c5fab691 |
children | ee0b3d18edd4 |
files | src/master/main.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/main.c Mon Jan 06 13:34:40 2003 +0200 +++ b/src/master/main.c Mon Jan 06 17:09:13 2003 +0200 @@ -130,7 +130,9 @@ if (WIFEXITED(status)) { status = WEXITSTATUS(status); if (status != 0) { - login_process_abormal_exit(pid); + if (process_type == PROCESS_TYPE_LOGIN) + login_process_abormal_exit(pid); + msg = get_exit_status_message(status); msg = msg == NULL ? "" : t_strconcat(" (", msg, ")", NULL); @@ -139,7 +141,8 @@ status, msg); } } else if (WIFSIGNALED(status)) { - login_process_abormal_exit(pid); + if (process_type == PROCESS_TYPE_LOGIN) + login_process_abormal_exit(pid); i_error("child %s (%s) killed with signal %d", dec2str(pid), process_type_name, WTERMSIG(status));