Add explicit db disconnect in Fatal(). If we don't disconnect then we leave sockets hanging around in TIME_WAIT (I think).
This commit is contained in:
parent
04c06d0893
commit
56b31becb2
|
@ -704,6 +704,8 @@ sub Fatal( @ ) {
|
||||||
if ( $SIG{TERM} and ( $SIG{TERM} ne 'DEFAULT' ) ) {
|
if ( $SIG{TERM} and ( $SIG{TERM} ne 'DEFAULT' ) ) {
|
||||||
$SIG{TERM}();
|
$SIG{TERM}();
|
||||||
}
|
}
|
||||||
|
# I think if we don't disconnect we will leave sockets around in TIME_WAIT
|
||||||
|
zmDbDisconnect();
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue