[mercury-users] Opening standard input stream when nothing is read.

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Jul 2 12:03:34 AEST 2007


On Sun, 1 Jul 2007, Bartlomiej Szymczak wrote:

> I've tried to run my mercury code with nohup, but I get an error:
>
> $ nohup ./john
> nohup: appending output to `nohup.out'
> $ cat nohup.out
> Mercury runtime: error opening standard input stream in binary mode:
>       fdopen() failed: Invalid argument
>
> The strangest thing is that I never read anything from standard input
> in my program. I do read files, however.
>
> Of course everything works OK if I run it without nohup or as:
> $ nohup ./john </dev/null
>
> But I still think it's a strange behavior of my program to try to open
> the stdin if I don't read anything from it.

Which version of Mercury are you using?  I think this problem was
fixed in rotd-2007-02-27 or thereabouts.

Julien.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list