summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2006-09-20 18:41:06 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-09-20 18:41:06 +0200
commitd5433918e5ea78035467ca1b955fe8dc8c93dda7 (patch)
tree869e915061c98d85593977c6e2e7f13c47c9b1c6
parentb4144edd4c469d4db5e0e4cc963a0a238a73ce89 (diff)
Just tail everything in tail_pipe() for nowv0.1
-rw-r--r--inotail.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index 7f191c6..da793db 100644
--- a/inotail.c
+++ b/inotail.c
@@ -138,11 +138,18 @@ static int bytes_to_offset(struct file_struct *f, int n_lines)
return (ret < 0 ? 0 : ret);
}
-/* We will just tail everything here */
static int tail_pipe(struct file_struct *f)
{
+ int rc;
+ char buf[BUFFER_SIZE];
+
if (verbose)
write_header(f->name);
+
+ /* We will just tail everything here */
+ while ((rc = read(f->fd, &buf, BUFFER_SIZE)) > 0)
+ write(STDOUT_FILENO, buf, (size_t) rc);
+
return 0;
}
con: gpio: Add support for active-low presence to detect pinsGuenter Roeck1-0/+4 2013-09-27extcon: Fix indentation coding style to improve readabilityChanwoo Choi2-29/+29 2013-08-05extcon: Add an API to get extcon device from dt nodeKishon Vijay Abraham I1-0/+31 2013-02-13extcon: gpio: Rename filename of extcon-gpio.c according to kernel naming styleChanwoo Choi1-0/+0 2012-09-05extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devicesanish kumar1-0/+71 2012-08-16Revert "Extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devices"Greg Kroah-Hartman1-73/+0 2012-08-16Extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devicesanish kumar1-0/+73 2012-07-17extcon: spelling of detach in function docPeter Meerwald1-1/+1 2012-04-20Extcon: support generic GPIO extcon driverMyungJoo Ham1-0/+52