1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: make chmod() return error

This commit is contained in:
Alexander Medvednikov
2021-08-28 09:37:24 +03:00
parent 858ba25d55
commit 853d3cb83e
5 changed files with 6 additions and 6 deletions

View File

@ -101,7 +101,7 @@ pub fn listen_stream(sock string) ?&StreamListener {
os.rm(sock) ?
}
net.socket_error(C.bind(s.handle, voidptr(&addr), size)) ?
os.chmod(sock, 0o777)
os.chmod(sock, 0o777) ?
net.socket_error(C.listen(s.handle, 128)) ?
return &StreamListener{
sock: s