From owner-freebsd-questions Fri Jun 29 0: 6: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx.obninsk.com (mx.obninsk.com [195.90.137.4]) by hub.freebsd.org (Postfix) with ESMTP id 9E38F37B401 for ; Fri, 29 Jun 2001 00:06:00 -0700 (PDT) (envelope-from kostia@obninsk.com) Received: from Vanbuston (85.town-gw135.obninsk.com [62.148.135.85]) by mx.obninsk.com (Postfix) with SMTP id C0401EA45 for ; Fri, 29 Jun 2001 11:05:58 +0400 (MSD) Message-ID: <003c01c1006a$689345a0$cd01010a@Vanbuston> From: "Konstantin Shepelin" To: Subject: Problems with close csh and ftp Date: Fri, 29 Jun 2001 11:09:16 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have FreeBSD ( build 4.1.1 ) server . I use SSH client to connect to server. When i work at the server netstat display one row like this: tcp4 0 0 x.x.x.x.22 y.y.y.y.61607 ESTABLISHED If connection has been broken port does not closed and when i have connected again netstat display to row tcp4 0 0 x.x.x.x.22 y.y.y.y.61607 ESTABLISHED tcp4 0 0 z.zx.zx.zx.22 zy.zy.zy.zy.61348 ESTABLISHED Now i have five such row when i use netstat to view open ports command ps -ax display that csh ( shell ) is still executed, Then I kill all suspended csh and all ports has been closing . ;-) My be exist the other way to close the csh while client lost connection ? Such problem appear then i use ftp client from my server to other server ftp. I close ftp client but socket is still open netstat -an display tcp4 0 0 y.y.y.y.1034 x.x.x.x.21 ESTABLISHED what must i do in order to connection become correct ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message