]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/commit
Improve checks for invalid file descriptors.
authorSimon Ruderich <simon@ruderich.org>
Fri, 21 Jun 2013 20:55:13 +0000 (22:55 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 21 Jun 2013 21:03:12 +0000 (23:03 +0200)
commit2fc66e15eb194ca1e54cd4df7f54bfdc3c87a3cd
treedce1d7ec46596130959d9c26afce8776ed9da9d0
parent219a9882ba55e2dc60f0ab40a2a3afcc7130417c
Improve checks for invalid file descriptors.

Just in case a real dup*() or fcntl() doesn't return -1 on error, but
something like -2.
src/coloredstderr.c