2 # We want proftpd process to drop a core, when it dies because of SigSegv.
3 # Same patch has been submitted to upstream:
4 # https://github.com/proftpd/proftpd/pull/764
6 diff --git a/src/session.c b/src/session.c
9 @@ -113,7 +113,7 @@ void pr_session_disconnect(module *m, int reason_code,
12 if (reason_code == PR_SESS_DISCONNECT_SEGFAULT) {
13 - flags |= PR_SESS_END_FL_ERROR;
14 + flags |= PR_SESS_END_FL_NOEXIT;
17 pr_session_end(flags);