poll(2) in a loop

This commit is contained in:
root 2025-05-07 10:35:00 +00:00
parent 08f4db4d2b
commit 0038b22aca

View file

@ -54,11 +54,15 @@ _start:
call pollfds__append
mov rbx, rax
poll:
mov rax, SYS_POLL
mov rdi, pollfds
mov rsi, rbx
mov rdx, 5000
syscall
cmp rax, 0
jeq poll
jlt exit
exit:
mov rax, SYS_EXIT