about summary refs log tree commit diff
path: root/filter.c
Commit message (Collapse)AuthorAgeFilesLines
* styleLeah Neukirchen2017-08-311-5/+5
|
* filter: use a non-blocking write pipeLeah Neukirchen2017-08-061-3/+10
|
* filter: don't write more than PIPE_BUF at onceLeah Neukirchen2017-08-061-2/+5
| | | | | This could result in stalling during big writes when we can't read the output of the child in the mean time.
* filter: simplify clean up logicLeah Neukirchen2017-04-141-13/+9
|
* filter: use sigpending/sigismember/sigwait instead of sigtimedwaitLeah Neukirchen2017-04-141-3/+10
| | | | | sigtimedwait is just POSIX.1-2001, which lesser operating systems don't implement completely.
* filter: use sigtimedwait with zero wait timeLeah Neukirchen2017-04-141-2/+4
| | | | Else it will block until SIGPIPE comes.
* filter: block SIGPIPE during filteringLeah Neukirchen2017-04-141-1/+15
|
* filter: free buffer on failureLeah Neukirchen2017-04-061-0/+1
|
* filter: make more robustLeah Neukirchen2017-03-261-2/+2
| | | | | | | MacOS will send POLLIN for empty reads on EOF, so detect ret == 0 too. Also poll for POLLHUP, which other systems use to message EOF. Fixes #18.
* clean up whitespaceLeah Neukirchen2017-01-261-4/+4
|
* filter: slay warningChristian Neukirchen2016-07-291-1/+1
|
* mshow: actually filter the partsChristian Neukirchen2016-07-291-0/+124