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

Bartlomiej Szymczak rhywek at gmail.com
Mon Jul 2 20:39:37 AEST 2007


On 7/2/07, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>
> 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
> --------------------------------------------------------------------------
>

$ mmc -v
Mercury Compiler, version 0.12.2, configured for i686-pc-linux-gnu

I guess I should install 0.13.x, but for some reason it's still marked
unstable on my system (Gentoo). Thanks!
-- 
Bartlomiej Antoni Szymczak
--------------------------------------------------------------------------
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