[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: redirecting output

From: Christopher Cramer
Subject: Re: redirecting output
Date: Thu, 4 Apr 2002 15:47:11 -0600
User-agent: Mutt/1.2.5i

On Thu, Apr 04, 2002 at 09:26:18AM -0600, Brian wrote:
> ; myinit.scm
> (define fd (get-my-descriptor))
> (define p (fdes->outport fd))
> (display "*** got descriptor ***" p)
> (newline p)
> (force-output p)
> I expected/hoped that the "*** got descriptor***" would be written to the
> file that I had previosly opened in my app.  But all that happened is my app
> app crashed with no signs of my message being written.

Can you find out where it crashed?

> One other thing.  When I get the file descriptor that my application is
> using, it returns 3.  Which is the same file descriptor that I see in
> scm_fdes_to_port when myinit.scm file is opened.  It appears that I have two
> different files assigned to the same file descriptor.  Why this is or if
> it's important, I don't know.

That is weird. It's hard to say what is going on without seeing more of
the code.

Christopher Cramer <address@hidden> <>
Quoi que vous fassiez, écrasez l'infâme, et aimez qui vous aime.
        -- Voltaire

reply via email to

[Prev in Thread] Current Thread [Next in Thread]