fix: sending 32-bit int instead of 8-bit; fix: fd leak

This commit fixes the issue where a 32-bit (int) number was sent instead of a 8-bit (uint8_t) number. Also fixes a fd leak when connecting to the companion.
This commit is contained in:
ThePedroo
2024-10-04 03:24:37 -03:00
parent 7a6ca482f0
commit 4d267aa719
4 changed files with 30 additions and 33 deletions

View File

@@ -36,9 +36,8 @@ int chcon(const char *path, const char *restrict context);
int unix_listener_from_path(char *path);
ssize_t gwrite_fd(int fd, int sendfd);
int gread_fd(int fd);
ssize_t write_fd(int fd, int sendfd);
int read_fd(int fd);
write_func_def(int);
read_func_def(int);