[Haskell-cafe] [help] Program immplementing an alarm

Antonio Regidor García a_regidor at yahoo.es
Wed Apr 30 17:26:18 EDT 2008


Thanks! But, when trying to implement your solution, I recalled hWaitForInput and used it to
implement the alarm. Anyway, thanks, probably I will need that for other programas.

Antonio

> The getLine function ties up stdin. So the system function isn't
> able to proceed until getLine completes, even when it is in
> another thread.
> 
> Try using System.Process.runInteractiveProcess instead of system.
> Don't forget to call waitForProcess on the process handle
> when you are finished, or you will be left with a zombie.
> 
> Hope this helps,
> Yitz




      ______________________________________________ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.


More information about the Haskell-Cafe mailing list