5 ms·
> For example, we don't have anything that lets you read from command line or stdin. But you can open and watch a file. whats the difference between opening a
by X6S1x6Okd1st 8y ago
> For example, we don't have anything that lets you read from command line or stdin. But you can open and watch a file.
whats the difference between opening a file and watching it and watching stdin?
- TheDong 8y agoinotify and seek works on most files. FIFO file descriptors, not so much. If you can't seek backwards, you pretty much have to cache the whole contents in memory, which seems wildly inefficient.