fix: client__pollout always returning error, not handling error
This commit is contained in:
parent
76b53ad30c
commit
c90622c564
2 changed files with 6 additions and 3 deletions
7
client.s
7
client.s
|
@ -137,15 +137,16 @@ client__pollout__shunt__finished:
|
||||||
jl client__pollout__return
|
jl client__pollout__return
|
||||||
mov word [pollfds + rbx * pollfd_size + 4], POLLIN
|
mov word [pollfds + rbx * pollfd_size + 4], POLLIN
|
||||||
|
|
||||||
client__pollout__no_line:
|
|
||||||
mov rax, -1024
|
|
||||||
|
|
||||||
client__pollout__return:
|
client__pollout__return:
|
||||||
pop r13
|
pop r13
|
||||||
pop r12
|
pop r12
|
||||||
pop rbx
|
pop rbx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
client__pollout__no_line:
|
||||||
|
mov rax, -1024
|
||||||
|
jmp client__pollout__return
|
||||||
|
|
||||||
; rdi - fd
|
; rdi - fd
|
||||||
client__shutdown_close:
|
client__shutdown_close:
|
||||||
mov rax, SYS_SHUTDOWN
|
mov rax, SYS_SHUTDOWN
|
||||||
|
|
2
main.s
2
main.s
|
@ -158,6 +158,8 @@ _client__pollout:
|
||||||
mov rsi, r12
|
mov rsi, r12
|
||||||
mov rdx, r15
|
mov rdx, r15
|
||||||
call client__pollout
|
call client__pollout
|
||||||
|
cmp rax, 0
|
||||||
|
jle _client__error_or_eof
|
||||||
add r15, 1
|
add r15, 1
|
||||||
jmp scan__loop
|
jmp scan__loop
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue