bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: `print' does not print


From: Eli Zaretskii
Subject: Re: `print' does not print
Date: Fri, 22 Mar 2002 13:58:07 +0200

> Date: Fri, 22 Mar 2002 11:41:41 +0100
> From: Ralf Fassel <address@hidden>
> 
> Fprint does what it is supposed to do, but the fwrite() calls in there
> return 0 (should be 1 at that point) with errno = Bad File number.

That seems to indicate that the standard output handle is somehow
closed.  Could you please see if it is already closed when Emacs
starts, or is closed during the run?

To do that, you could either (a) use some utility, such as truss or
strace, to report system calls issued by Emacs; or (b) invoke fwrite
from GDB at the beginning of the Emacs `main' function (put a
breakpoint in `main' to stop Emacs there), and see what it returns.

> So this does not seem to be a pure emacs problem, but also gcc is
> involved.

Probably the library and the header files, not only the compiler, have
something to do with this.

Thanks for working on this.



reply via email to

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