From 0038b22aca7dc98ff3f41dd606b8e0cc0f3c0931 Mon Sep 17 00:00:00 2001 From: root <> Date: Wed, 7 May 2025 10:35:00 +0000 Subject: [PATCH] poll(2) in a loop --- hello.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hello.s b/hello.s index 091ea49..98d98d2 100644 --- a/hello.s +++ b/hello.s @@ -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