mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
lua: return on socket init failure
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b3580fc519
commit
c8640013c2
1 changed files with 2 additions and 2 deletions
4
luaa.c
4
luaa.c
|
@ -944,10 +944,10 @@ luaA_cs_init(void)
|
|||
if(unlink(addr->sun_path))
|
||||
warn("error unlinking existing file: %s", strerror(errno));
|
||||
if(bind(csfd, (const struct sockaddr *) addr, SUN_LEN(addr)))
|
||||
warn("error binding UNIX domain socket: %s", strerror(errno));
|
||||
return warn("error binding UNIX domain socket: %s", strerror(errno));
|
||||
}
|
||||
else
|
||||
warn("error binding UNIX domain socket: %s", strerror(errno));
|
||||
return warn("error binding UNIX domain socket: %s", strerror(errno));
|
||||
}
|
||||
listen(csfd, 10);
|
||||
|
||||
|
|
Loading…
Reference in a new issue