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
|
||||
mov word [pollfds + rbx * pollfd_size + 4], POLLIN
|
||||
|
||||
client__pollout__no_line:
|
||||
mov rax, -1024
|
||||
|
||||
client__pollout__return:
|
||||
pop r13
|
||||
pop r12
|
||||
pop rbx
|
||||
ret
|
||||
|
||||
client__pollout__no_line:
|
||||
mov rax, -1024
|
||||
jmp client__pollout__return
|
||||
|
||||
; rdi - fd
|
||||
client__shutdown_close:
|
||||
mov rax, SYS_SHUTDOWN
|
||||
|
|
2
main.s
2
main.s
|
@ -158,6 +158,8 @@ _client__pollout:
|
|||
mov rsi, r12
|
||||
mov rdx, r15
|
||||
call client__pollout
|
||||
cmp rax, 0
|
||||
jle _client__error_or_eof
|
||||
add r15, 1
|
||||
jmp scan__loop
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue