[mew-dist 24181] ssh is not dead even with mew-ssh-keep-connection set to nil

Katsuhiro Kondou kondou at example.com
2003年 11月 16日 (日) 01:47:13 JST


FreeBSD4.6.2 で 4.0.60 を使っていますが、mew-ssh-keep-connection
を nil にしているにもかかわらず、pop でメールを取ってきた後に ssh
が死んでくれないので少し調べてみました。ssh は -vvv で起動させて
います。

<SSH: >
exit^M
logout
debug2: channel 2: rcvd eof
debug2: channel 2: output open -> drain
debug2: channel 2: obuf empty
debug2: channel 2: close_write
debug2: channel 2: output drain -> closed
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
debug2: channel 2: rcvd close
debug2: channel 2: close_read
debug2: channel 2: input open -> closed
debug3: channel 2: will not send data after close
debug2: channel 2: almost dead
debug2: channel 2: gc: notify user


<SSH: >
debug2: channel 2: gc: user detached
debug2: channel 2: send close
debug2: channel 2: is dead
debug2: channel 2: garbage collecting
debug1: channel 2: free: client-session, nchannels 4
debug3: channel 2: status: The following connections are open:
  #2 client-session (t4 r0 i3/0 o3/0 fd -1/-1)
  #3 direct-tcpip: listening port 11328 for 127.0.0.1 port 110, connect from 127.0.0.1 port 1246 (t4 r2 i0/0 o3/0 fd 10/10)

debug3: channel 2: close_fds r -1 w -1 e 9

netstat で見ても、

tcp4       0      0  127.0.0.1.11328        127.0.0.1.1246         FIN_WAIT_2
tcp4       0      0  127.0.0.1.1246         127.0.0.1.11328        CLOSE_WAIT
tcp4       0      0  127.0.0.1.11328        *.*                    LISTEN

な中途半端な状態が続いてくれます。ssh を停止させるために "exit\n"
の代わりに "~." を突っ込んでやれば当然 ssh は死んでくれますが、
強引さを感じているのです。あるいは何か見落としているのかもしれ
ませんが、他ではこのようなことは起きていないでしょうか?
-- 
Katsuhiro Kondou



Mew-dist メーリングリストの案内