tail -c 1 /dev/mtd3 hangs (v1.1.3)

Steven Scholz steven.scholz at imc-berlin.de
Thu Jun 22 07:45:37 UTC 2006


Bernhard,

> How about using lseek() only for real files, i.e. (st_size > 0) and (st_rdev
> == 0) ?
> 
> What do you think of
> 
> static ssize_t tail_read(int fd, char *buf, size_t count)
> ...

Just in case you like it, attached a patch.

--
Steven
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: busybox.tail_donotendlesslooponlockdevs.diff
Url: http://lists.busybox.net/pipermail/busybox/attachments/20060622/27fb22fd/attachment.diff 


More information about the busybox mailing list