diff options
author | jcid <devnull@localhost> | 2007-10-29 23:18:25 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-10-29 23:18:25 +0100 |
commit | ffb17459b3ccb49ae0cfbe5ae2cd8d63a458d5d5 (patch) | |
tree | 0c3080b18b37b2fd6230c56a385f7500291d06cf /src/IO/IO.c | |
parent | 989a4d35b5f43bc72bfd930d409362fbc1a48a3f (diff) |
Fixed a subtle bug in klist that was affecting IO.
Diffstat (limited to 'src/IO/IO.c')
-rw-r--r-- | src/IO/IO.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/IO/IO.c b/src/IO/IO.c index 8adb3658..d601478d 100644 --- a/src/IO/IO.c +++ b/src/IO/IO.c @@ -94,6 +94,8 @@ static void IO_ins(IOData_t *io) if (io->Key == 0) { io->Key = a_Klist_insert(&ValidIOs, io); } + _MSG("IO_ins: io->Key=%d, Klist_length=%d\n", + io->Key, a_Klist_length(ValidIOs)); } /* @@ -298,7 +300,7 @@ static void IO_submit(IOData_t *r_io) IO_ins(r_io); _MSG("IO_submit:: (%s) FD = %d\n", - (io->Op == IORead) ? "IORead" : "IOWrite", io->FD); + (r_io->Op == IORead) ? "IORead" : "IOWrite", r_io->FD); /* Set FD to background and to close on exec. */ fcntl(r_io->FD, F_SETFL, O_NONBLOCK | fcntl(r_io->FD, F_GETFL)); |