Leah Neukirchen
|
66d0eff12f
|
style
|
2017-08-31 17:30:17 +02:00 |
|
Leah Neukirchen
|
13db67713f
|
filter: use a non-blocking write pipe
|
2017-08-06 20:05:37 +02:00 |
|
Leah Neukirchen
|
6b5b42f583
|
filter: don't write more than PIPE_BUF at once
This could result in stalling during big writes when we can't read the
output of the child in the mean time.
|
2017-08-06 18:53:51 +02:00 |
|
Leah Neukirchen
|
ad9fe95761
|
filter: simplify clean up logic
|
2017-04-14 20:00:25 +02:00 |
|
Leah Neukirchen
|
9e49cf7561
|
filter: use sigpending/sigismember/sigwait instead of sigtimedwait
sigtimedwait is just POSIX.1-2001, which lesser operating systems don't
implement completely.
|
2017-04-14 19:52:58 +02:00 |
|
Leah Neukirchen
|
b78cf918db
|
filter: use sigtimedwait with zero wait time
Else it will block until SIGPIPE comes.
|
2017-04-14 02:22:12 +02:00 |
|
Leah Neukirchen
|
6fae889a13
|
filter: block SIGPIPE during filtering
|
2017-04-14 02:11:03 +02:00 |
|
Leah Neukirchen
|
9e8e0d38c9
|
filter: free buffer on failure
|
2017-04-06 21:02:16 +02:00 |
|
Leah Neukirchen
|
a27ba3370c
|
filter: make more robust
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.
|
2017-03-26 19:21:33 +02:00 |
|
Leah Neukirchen
|
2b4e3aa66d
|
clean up whitespace
|
2017-01-26 20:27:26 +01:00 |
|
Christian Neukirchen
|
65b277df16
|
filter: slay warning
|
2016-07-29 17:15:12 +02:00 |
|
Christian Neukirchen
|
be2ca1ba42
|
mshow: actually filter the parts
|
2016-07-29 15:15:57 +02:00 |
|