Mail Archives: djgpp/1996/06/26/07:14:33
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 -