Permalink
Browse files

tweetstache.js: Added notice on stache exit

  • Loading branch information...
jadonk committed Jan 7, 2013
1 parent 31b8b70 commit c632c808aa3cc60c73cf398dc12ed0f0df965154
Showing with 4 additions and 0 deletions.
  1. +4 −0 tweetstache.js
View
@@ -140,12 +140,16 @@ function stacheMessage(data) {
} catch(ex) {
}
};
+var stacheExit = function(code, signal) {
+ console.log('stache exited: ' + code + ' signal: ' + signal);
+};
var stache = child_process.spawn('./stache',
['-1','stache-mask.png','6','4','0','640','480','0.5'],
{stdio:['pipe', 'pipe', process.stderr]}
);
stache.stdout.setEncoding('ascii');
stache.stdout.on('data', stacheMessage);
+stache.on('exit', stacheExit);
function requestStache() {
console.log('requestStache');

0 comments on commit c632c80

Please sign in to comment.