Skip to content

Commit

Permalink
Log exit code
Browse files Browse the repository at this point in the history
Reviewed By: @martinbigio

Differential Revision: D2467457
  • Loading branch information
Amjad Masad authored and facebook-github-bot-0 committed Sep 22, 2015
1 parent cee01be commit 7806c08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packager/react-packager/src/SocketInterface/SocketServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ class SocketServer {
options
);
resolve(this);
process.on('exit', () => fs.unlinkSync(sockPath));
process.on('exit', code => {
debug('exit code:', code);
fs.unlinkSync(sockPath);
});
});
});

Expand Down

0 comments on commit 7806c08

Please sign in to comment.