bugfix: use globbed instead of filename when unlinking ipc socket
parent
dc9bc89172
commit
5e2ab5be65
|
@ -511,7 +511,7 @@ int ipc_create_socket(const char *filename) {
|
||||||
free(copy);
|
free(copy);
|
||||||
|
|
||||||
/* Unlink the unix domain socket before */
|
/* Unlink the unix domain socket before */
|
||||||
unlink(filename);
|
unlink(globbed);
|
||||||
|
|
||||||
if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) {
|
if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) {
|
||||||
perror("socket()");
|
perror("socket()");
|
||||||
|
|
Loading…
Reference in New Issue