wip
This commit is contained in:
@@ -7,13 +7,15 @@ const socketPath = '/tmp/oscar_watcher.sock';
|
||||
let progvars = {};
|
||||
|
||||
// Remove the socket file if it already exists
|
||||
try {
|
||||
if (fs.existsSync( socketPath )) {
|
||||
try {
|
||||
fs.unlinkSync(socketPath);
|
||||
} catch (err) {
|
||||
} catch (err) {
|
||||
if (err.code !== 'ENOENT') {
|
||||
console.error('Error removing existing socket file:', err);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const unix_socket_server = net.createServer((connection) => {
|
||||
|
||||
Reference in New Issue
Block a user