You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably a rare use case, but maybe one you didn't consider. I have a commandline app that sets stdout to NoBuffering in main. If I launch an external process and wish to silence it, I have to reset the BufferMode. Here's my workaround:
hSilence':: [Handle] ->IOa->IOa
hSilence' hs action =do
bs <-mapM hGetBuffering hs
result <- hSilence hs action
mapM_ (\(h,b) -> hSetBuffering h b) (zip hs bs)
return result
The text was updated successfully, but these errors were encountered:
Thanks for reporting this! I just ran into this issue as well, but with stderr, which is not buffered by default. It actually caused a deadlock in my app somehow, I think.
This is probably a rare use case, but maybe one you didn't consider. I have a commandline app that sets stdout to NoBuffering in main. If I launch an external process and wish to silence it, I have to reset the BufferMode. Here's my workaround:
The text was updated successfully, but these errors were encountered: