Skip to content

Commit

Permalink
Ensure messina exits after the input stream closes.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianloveswords committed Oct 19, 2013
1 parent b3ee9f2 commit 3ae0de5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/messina
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ function processStdin() {
leftover = '';
}
});

stdin.on('close', function () {
process.exit(0);
});
}

print(util.format('Piping log events to %s:%s', GRAYLOG_HOST, GRAYLOG_PORT));
Expand Down

0 comments on commit 3ae0de5

Please sign in to comment.