www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/26/07:14:33

Date: Wed, 26 Jun 1996 13:56:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Cc: djgpp AT delorie DOT com
Subject: Re: FSE, some questions
In-Reply-To: <31D0FDC2.15FB@LSTM.Ruhr-UNI-Bochum.De>
Message-Id: <Pine.SUN.3.91.960626135406.8061A-100000@is>
Mime-Version: 1.0

On Wed, 26 Jun 1996, Thomas Demmer wrote:

>   case __FSEXT_close :{
>      int fd = va_arg(args, int);
>      // Shutdown COM-Handler....
>      [...]
>      _close(fd);
>      return EMULATED;
> [...]
> This caused _close to trigger my handler again, obviously
> not what I intended. 

Why would you want to call `_close'?  After all, `fd' is not a file 
handle, so why call a function that only knows about true file handles?  
You should just shut down the handler (or only break a specific 
connection, if the handler supports multiple connections) and return.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019