octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #32319] printing sometimes fails with error "g


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #32319] printing sometimes fails with error "gl2ps-renderer: fdopen failed"
Date: Sat, 12 Feb 2011 01:20:48 -0500

On 11-Feb-2011, Konstantinos Poulios wrote:

| Follow-up Comment #6, bug #32319 (project octave):
| 
| In __init_fltk__.cc. line 764 drawing is set to printing mode:
| 
|     canvas->print (fid, term);
| 
| then in __init_fltk__.cc. line 768 we call:
| 
|       mark_modified ();
| 
| which triggers graphics redraw that ends up at some canvas->draw
| asynchronously.
| 
| It seems that
| 
|       waitpid (pid);
| 
| at line 159 of __fltk_print__.m is not a sufficient guarantee that the code
| execution will reach and complete line 160 __init_fltk__.cc:

That is a misuse of waitpid.  The waitpid function waits for
subprocesses given a process ID.  But in this context PID is a file
ID that refers to a pipe that is open for writing, not a process ID.

jwe



reply via email to

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