[dovecot-cvs] dovecot/src/master main.c,1.24,1.25
cras at procontrol.fi
cras at procontrol.fi
Mon Jan 6 17:09:15 EET 2003
Update of /home/cvs/dovecot/src/master
In directory danu:/tmp/cvs-serv3547
Modified Files:
main.c
Log Message:
Call login_process_abormal_exit() only if it was login processes that died..
Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/main.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- main.c 5 Jan 2003 13:09:53 -0000 1.24
+++ main.c 6 Jan 2003 15:09:13 -0000 1.25
@@ -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));
More information about the dovecot-cvs
mailing list