poll(2) in a loop
This commit is contained in:
parent
08f4db4d2b
commit
0038b22aca
1 changed files with 4 additions and 0 deletions
4
hello.s
4
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue