/*
- * $Id: disk.cc,v 1.102 1998/02/05 20:47:35 wessels Exp $
+ * $Id: disk.cc,v 1.103 1998/02/09 21:17:25 wessels Exp $
*
* DEBUG: section 6 Disk I/O Routines
* AUTHOR: Harvest Derived
EBIT_SET(F->flags, FD_CLOSE_REQUEST);
return;
}
- if (EBIT_TEST(F->flags, FD_WRITE_PENDING)) {
- EBIT_SET(F->flags, FD_CLOSE_REQUEST);
- return;
- }
#if USE_ASYNC_IO
aioClose(fd);
#else
if (fdd->write_q == NULL) {
/* no more data */
fdd->write_q_tail = NULL;
- EBIT_CLR(F->flags, FD_WRITE_PENDING);
EBIT_CLR(F->flags, FD_WRITE_DAEMON);
} else {
/* another block is queued */
F->disk.wrt_handle = handle;
F->disk.wrt_handle_data = handle_data;
/* add to queue */
- EBIT_SET(F->flags, FD_WRITE_PENDING);
if (F->disk.write_q == NULL) {
/* empty queue */
F->disk.write_q = F->disk.write_q_tail = wq;