aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-manual.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2011-10-18 16:45:03 +0200
committerJon Lund Steffensen <jonlst@gmail.com>2011-10-18 16:45:03 +0200
commitf7d0b5fe72c29de4c4f872d5a2c6578f0d68a462 (patch)
tree18efceba14c30ad3a76dd84187a8d03ee1a4201b /src/location-manual.c
parentAllow separate brightness for day and night (Olivier Fabre and Jeremy Erickson). (diff)
downloadredshift-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 'src/location-manual.c')
0 files changed, 0 insertions, 0 deletions