mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-30 07:10:22 +00:00
correctly test success of fnctl
This commit is contained in:
parent
c1a50b1bfc
commit
9d5615598f
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ bool socket_daemon_begin_un(struct daemon *daemon, char *socket_path, socket_dae
|
|||
snprintf(socket_address.sun_path, sizeof(socket_address.sun_path), "%s", socket_path);
|
||||
unlink(socket_path);
|
||||
|
||||
if (((daemon->sockfd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) || fcntl(daemon->sockfd, F_SETFD, FD_CLOEXEC | fcntl(daemon->sockfd, F_GETFD))) {
|
||||
if (((daemon->sockfd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) || (fcntl(daemon->sockfd, F_SETFD, FD_CLOEXEC | fcntl(daemon->sockfd, F_GETFD)) == -1)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue