From: ivan Date: Sat, 15 Nov 2003 07:28:26 +0000 (+0000) Subject: kill off ssh process when re-opening connection X-Git-Tag: NET_WHOIS_RAW_0_31~260 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=ded62e3a3ab9b930593d36be3f2b32bda2433f07 kill off ssh process when re-opening connection --- diff --git a/FS/bin/freeside-selfservice-server b/FS/bin/freeside-selfservice-server index d2358e33c..f9571fa1e 100644 --- a/FS/bin/freeside-selfservice-server +++ b/FS/bin/freeside-selfservice-server @@ -79,6 +79,11 @@ while (1) { warn "Storable error receiving packet from client". " (assuming lost connection): $@\n" if $Debug; + if ( $ssh_pid ) { + warn "sending TERM signal to ssh process $ssh_pid\n" if $Debug; + kill 'TERM', $ssh_pid; + $ssh_pid = 0; + } last; } warn "packet received\n".