Change sigTTOU/TTIN to IGNORE by default
Volker Stolz
stolz at I2.Informatik.RWTH-Aachen.DE
Thu Jan 11 05:54:49 EST 2001
On Thu, Jan 11, 2001 at 02:22:59AM -0800, Simon Marlow wrote:
> > My local copy of ghc-4.08.1 likes to stop a program when running it
> > with "&" (nohup) by default, I have to call
> > Posix.installHandler Posix.sigTTOU Posix.Ignore Nothing
>
> I couldn't reproduce this problem: just ran "hello world" in the
> background, it printed the message and exited. Could you give more
> details?
In fact I can produce a simple example, either. So just the facts:
perftest at monster [11:46:35]> ./Reader &
[2] 86029
perftest at monster [11:46:40]> jobs
[2]+ Stopped ./Reader
Sourcecode-snippet of Reader:
> main = do
> -- Posix.installHandler Posix.sigTTOU Posix.Ignore Nothing
> hSetBuffering stdout NoBuffering
> Distributed.start (do
> register "Reader"
> ....
and the relevant fragment of Distributed.start up to the first few
putStrs:
> start :: DIO msg () -> String -> IO ()
> start f node = do
> putStr "DHS: Starting"
> putStr " Arguments"
> args <- DHSOptions.getArgs
> ...
Inserting a linefeed or using putStrLn don´t cause any change.
GHC was last built on Nov 15 18:25. I remember reporting a signal-handler
related bug a couple of weeks ago which got fixed, but maybe I haven´t
fixed my ghc and this is because of the same reason...
--
\usepackage[latin1]{inputenc}!
Volker Stolz * stolz at i2.informatik.rwth-aachen.de * PGP + S/MIME
More information about the Glasgow-haskell-bugs
mailing list