Don't warn on cleanup unlink error
We may catch an exit signal before we actually bound to the socket.
This commit is contained in:
parent
24167b5c07
commit
1a0eca12a5
1 changed files with 2 additions and 3 deletions
5
quark.c
5
quark.c
|
@ -894,9 +894,8 @@ static void
|
|||
cleanup(void)
|
||||
{
|
||||
close(insock);
|
||||
if (udsname) {
|
||||
if (unlink(udsname) < 0)
|
||||
fprintf(stderr, "unlink: %s\n", strerror(errno));
|
||||
if (udsname)
|
||||
unlink(udsname);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue