summaryrefslogtreecommitdiff
path: root/kernel/queue.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-03-26 11:40:39 +0100
committerAnton Kling <anton@kling.gg>2024-03-26 11:40:39 +0100
commit297231bb3602d868d3891d357026c53f9fcc2402 (patch)
tree6c4f21db84912750f6f464b26bf1e4503d1fe479 /kernel/queue.c
parent3deb2df8e62a5f0a5535ee734a5aa13b0959f53f (diff)
Increase support for signals
Diffstat (limited to 'kernel/queue.c')
-rw-r--r--kernel/queue.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/queue.c b/kernel/queue.c
index d77af85..b1cf698 100644
--- a/kernel/queue.c
+++ b/kernel/queue.c
@@ -50,18 +50,14 @@ int queue_should_block(struct event_queue *q, int *is_empty) {
if (!list_get(&q->events, i, (void **)&ev)) {
break;
}
- kprintf("wait %d\n", i);
*is_empty = 0;
if (EVENT_TYPE_FD == ev->type) {
- kprintf("found fd: %d\n", ev->internal_id);
vfs_fd_t *fd = get_vfs_fd(ev->internal_id, q->p);
- kprintf("fd->inode->has_data: %x\n", fd->inode->has_data);
if (!fd) {
kprintf("queue: Invalid fd given\n");
continue;
}
if (fd->inode->has_data) {
- kprintf("no block\n");
return 0;
}
} else if (EVENT_TYPE_TCP_SOCKET == ev->type) {
@@ -69,10 +65,7 @@ int queue_should_block(struct event_queue *q, int *is_empty) {
assert(con);
assert(con->data_file);
if (con->data_file->has_data) {
- kprintf("has data\n");
return 0;
- } else {
- kprintf("blocking queue\n");
}
}
}