Browse Source

more defensive programming for SIGIO (*groan*)

master
Felix von Leitner 17 years ago
parent
commit
68da613393
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      io/io_canread.c
  2. +1
    -0
      io/io_canwrite.c

+ 1
- 0
io/io_canread.c View File

@ -24,6 +24,7 @@ int64 io_canread() {
if (!e) break;
r=first_readable;
first_readable=e->next_read;
e->next_read=-1;
debug_printf(("io_canread: dequeue %lld from normal read queue (next is %ld)\n",r,first_readable));
if (e->wantread && e->canread) {
#ifdef HAVE_SIGIO


+ 1
- 0
io/io_canwrite.c View File

@ -24,6 +24,7 @@ int64 io_canwrite() {
if (!e) break;
r=first_writeable;
first_writeable=e->next_write;
e->next_write=-1;
debug_printf(("io_canwrite: dequeue %lld from normal write queue (next is %ld)\n",r,first_writeable));
if (e->wantwrite && e->canwrite) {
#ifdef HAVE_SIGIO


Loading…
Cancel
Save