summaryrefslogtreecommitdiff
path: root/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'client.js')
-rwxr-xr-xclient.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.js b/client.js
index 95a787b..7fd765c 100755
--- a/client.js
+++ b/client.js
@@ -28,7 +28,7 @@ catch(e){
}
lockfiledesc=fs.openSync(lockfilename,"w");
}
-fs.write(lockfiledesc,process.pid+"\n");
+fs.writeSync(lockfiledesc,process.pid+"\n");
process.on("exit",function(){
fs.closeSync(lockfiledesc);
fs.unlinkSync(lockfilename);