system-posix-redirect: A toy module to temporarily redirect a program's stdout.
Due to the design of POSIX, it is possible to temporarily overload the file descriptors corresponding to stdout and stderr to point to an arbitrary pipe. It is, however, tricky to get right. This module gets it right, as far as such a terrible hack can be made right. It can be used to make misbehaving third-party C libraries stop spewing to standard output. Warning: the module author has concluded that due to lack of portability, this module should not be used in any serious sytem. But, for those who like living dangerously...
|Versions [RSS]||1.0, 220.127.116.11, 1.1, 18.104.22.168|
|Dependencies||base (>=4 && <5), bytestring (>=0.9), unix (>=2.4.0) [details]|
|Copyright||(c) 2010 Galois Inc, 2013 Liyang HU|
|Author||Galois Inc., Liyang HU|
|Source repo||head: git clone https://github.com/liyang/system-posix-redirect|
|Uploaded||by LiyangHu at 2013-11-14T00:36:05Z|
|Reverse Dependencies||2 direct, 0 indirect [details]|
|Downloads||4585 total (13 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
|Status||Docs available [build log]
Successful builds reported [all 1 reports]