From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fe2d53b2d9d63fc,start X-Google-Attributes: gid103376,public From: jwidere@rsa.hisd.harris.com (John F Widere) Subject: serial port problem on close Date: 1998/07/06 Message-ID: <6nr769$9ph@su102w.ess.harris.com>#1/1 X-Deja-AN: 369102886 Content-Transfer-Encoding: 7bit Keywords: serial Mime-Version: 1.0 Reply-To: jwidere@rsa.hisd.harris.com Distribution: world Content-Type: text/plain; charset=us-ascii Organization: Harris Corp. Newsgroups: comp.lang.ada Date: 1998-07-06T00:00:00+00:00 List-Id: Hi, I am debugging an application which monitors a device via an RS-232 interface. The serial line is connected to the ttyd2 device on an SGI R10K indigo II. What we have attempted to do is to detect when the connection has been lost ( we pull the cable), close the port and then poll periodically trying to do another open on the port. What we are seeing is that the process is hanging on the close. Some particulars: We are using the Apex Ada compiler (2.4.1) on the SGI we have set up the port as a read connection and a write connection. The close works fine (it appears) when normally shutting down the process (ie. the connection was not lost) Does anybody have any insight or words of wisdom? Thanks John Widere -- ************************************* * John Widere * Email: jwidere@rsa.hisd.harris.com *************************************