On Fri, Apr 27, 2012 at 3:45 PM, Mark Lentczner <[email protected]> wrote:

> The IO manager opens two pipes, and (at least for kqueue) another file
> descriptor. The program I'm working on (a shell!) needs to control FDs 0-9
> -- so if the IO manager opens these things on those FDs, my program breaks
> in spectacular ways....


Have you thought about calling hs_init() from your own C main() function?
You can set up the file descriptors however you like if you do this. See
ยง8.2.1.1 here:
http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/ffi-ghc.html .

G
-- 
Gregory Collins <[email protected]>
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to