Closed kpcyrd closed 6 years ago
I ran into the "Address already in use" issue and it probably makes more sense to solve this in the lib itself instead of me parsing the url, check if it's ipc and then remove the file.
According to stackoverflow and the linked bsd syslog source this is the correct way to solve this: https://stackoverflow.com/a/34881585
I've added an additional check though to make sure the file is indeed a socket.
Thank you !
@blabaere you might have clicked the wrong button, the PR is closed instead of merged. :)
Indeed, done now.
I ran into the "Address already in use" issue and it probably makes more sense to solve this in the lib itself instead of me parsing the url, check if it's ipc and then remove the file.
According to stackoverflow and the linked bsd syslog source this is the correct way to solve this: https://stackoverflow.com/a/34881585
I've added an additional check though to make sure the file is indeed a socket.