(lwpSleepFd): More information in debug output.
(lwpSelect): Fix use of uninitialized variable in debug output.
This commit is contained in:
parent
b60f7d7b42
commit
d5774a938d
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ lwpInitSelect(struct lwpProc *proc)
|
||||||
void
|
void
|
||||||
lwpSleepFd(int fd, int mask)
|
lwpSleepFd(int fd, int mask)
|
||||||
{
|
{
|
||||||
lwpStatus(LwpCurrent, "sleeping on fd %d", fd);
|
lwpStatus(LwpCurrent, "sleeping on fd %d for %d", fd, mask);
|
||||||
|
|
||||||
if (LwpSelect.wait[fd] != 0) {
|
if (LwpSelect.wait[fd] != 0) {
|
||||||
lwpStatus(LwpCurrent,
|
lwpStatus(LwpCurrent,
|
||||||
|
@ -180,7 +180,7 @@ lwpSelect(void *arg)
|
||||||
if (tv.tv_sec < 0)
|
if (tv.tv_sec < 0)
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
}
|
}
|
||||||
lwpStatus(us, "selecting; sleep %ld secs", (long)delta);
|
lwpStatus(us, "selecting; sleep %ld secs", tv.tv_sec);
|
||||||
|
|
||||||
memcpy(&readmask, &LwpSelect.readmask, sizeof(fd_set));
|
memcpy(&readmask, &LwpSelect.readmask, sizeof(fd_set));
|
||||||
memcpy(&writemask, &LwpSelect.writemask, sizeof(fd_set));
|
memcpy(&writemask, &LwpSelect.writemask, sizeof(fd_set));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue