system-posix-redirect: A toy module that allows you 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||1.0, 126.96.36.199, 1.1, 188.8.131.52|
|Dependencies||base (==4.*), unix (>=2.4.0 && <2.5) [details]|
|Copyright||(c) 2010 Galois Inc.|
|Uploaded||by EdwardYang at Tue Jul 13 02:02:24 UTC 2010|
|Downloads||2050 total (15 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI
For package maintainers and hackage trustees