Mysterious function timer_settime

Volker Wysk pf3 at volker-wysk.de
Wed Sep 28 14:27:13 CEST 2011


Hi

Here's an addition to my "Mysterious function timer_settime" message:

This test program:

	import HsShellScript

	main =
	   call (exec "/bin/echo" ["bla bla"]
	         -|- exec "/bin/cat" [])

produces this output:

	test: test: <stderr>: hPutStr: illegal operation (handle is closed)<stderr>: 	
	hPutStr: illegal operation (handle is closed)

	test: timer_settimetest: : Invalid argument
	timer_settime: Invalid argument
	test: Exited (ExitFailure 1)

I'm almost sure that the two examples work fine in the last working version of 
HsShellScript. They use GHC-6.11. (I can't verify this, since I have 
GHC-7.0.4 version installed. The old GHC version isn't available as a Debian 
package any longer.)

So there appears to be a downwards-incompatibilty in the GHC libraries. I'm 
fiddling with the internals quite a bit, in order to get forks, pipes and 
redirects etc. working.

Any hint would be appreciated.

Volker



More information about the Glasgow-haskell-users mailing list