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