Log exit code

Reviewed By: @martinbigio

Differential Revision: D2467457
This commit is contained in:
Amjad Masad 2015-09-22 12:38:37 -07:00 committed by facebook-github-bot-0
parent cee01bef4f
commit 7806c0875b
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ class SocketServer {
options options
); );
resolve(this); resolve(this);
process.on('exit', () => fs.unlinkSync(sockPath)); process.on('exit', code => {
debug('exit code:', code);
fs.unlinkSync(sockPath);
});
}); });
}); });