diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2011-10-18 16:45:03 +0200 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2011-10-18 16:45:03 +0200 |
commit | f7d0b5fe72c29de4c4f872d5a2c6578f0d68a462 (patch) | |
tree | 18efceba14c30ad3a76dd84187a8d03ee1a4201b /redshift.1 | |
parent | Allow separate brightness for day and night (Olivier Fabre and Jeremy Erickson). (diff) | |
download | redshift-ng-f7d0b5fe72c29de4c4f872d5a2c6578f0d68a462.tar.gz redshift-ng-f7d0b5fe72c29de4c4f872d5a2c6578f0d68a462.tar.bz2 redshift-ng-f7d0b5fe72c29de4c4f872d5a2c6578f0d68a462.tar.xz |
Set buffering on stdout and stderr to line-buffered.
Previously stdout would be block buffered and stderr unbuffered when writing to a non-terminal.
This code works on Debian with libc 2.11.2. The man page of setvbuf mentions that NULL can be used to avoid affecting the used buffer, but doesn't mention whether the size argument is then ignored; testing on Debian has revealed that this code works as intended, but I don't know whether that's standard.
(Christian Jaeger)
Diffstat (limited to 'redshift.1')
0 files changed, 0 insertions, 0 deletions