Support OpenBSD (#146)

pull/154/head
watanabe takanobu 2018-10-30 15:39:21 +08:00 committed by Maciej Winnicki
parent a99286fa0d
commit 75d31aafd6
3 changed files with 723 additions and 730 deletions

View File

@ -23,7 +23,12 @@ function Tail(path, opts) {
this.emit('line', str);
});
} else {
const tail = childProcess.spawn('tail', ['-n', options.buffer, '-F'].concat(path));
let followOpt = '-F';
if (process.platform === 'openbsd') {
followOpt = '-f';
}
const tail = childProcess.spawn('tail', ['-n', options.buffer, followOpt].concat(path));
tail.stderr.on('data', (data) => {
// If there is any important error then display it in the console. Tail will keep running.

1444
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"jsdom": "^11.11.0",
"mocha": "~2.3.2",
"mocha": "^2.3.2",
"pkg": "^4.3.3",
"should": "~3.3.2",
"sinon": "~1.7.3",