Date: Wed, 26 Jun 1996 13:56:24 +0200 (IST) From: Eli Zaretskii To: Thomas Demmer Cc: djgpp AT delorie DOT com Subject: Re: FSE, some questions In-Reply-To: <31D0FDC2.15FB@LSTM.Ruhr-UNI-Bochum.De> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.