X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRtsStartup.c;h=4f42823d4ae5f7dc946022b877b896c5118c6835;hb=52f600c8ea0bf0d9b4c01570e80d70bfa65c43ba;hp=4f84468b0a8a61afc18ee863b54a0a5f6bd5ce85;hpb=1d026619ef5f098a0349ba2fa1b29d5697718bad;p=ghc-hetmet.git diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c index 4f84468..4f42823 100644 --- a/rts/RtsStartup.c +++ b/rts/RtsStartup.c @@ -281,10 +281,6 @@ hs_init(int *argc, char **argv[]) x86_init_fpu(); #endif -#if defined(THREADED_RTS) - ioManagerStart(); -#endif - /* Record initialization times */ stat_endInit(); } @@ -360,6 +356,11 @@ hs_add_root(void (*init_root)(void)) // This must be done after module initialisation. // ToDo: make this work in the presence of multiple hs_add_root()s. initProfiling2(); + + // ditto. +#if defined(THREADED_RTS) + ioManagerStart(); +#endif } /* ----------------------------------------------------------------------------