[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuplot-info-beta
Subject: Re: correction (fwd), bug in gnuplot3.8b
From: Michael Cohen <mic109 () rsphy1 ! anu ! edu ! au>
Date: 2000-01-13 23:39:59
[Download RAW message or body]
On Thu, 13 Jan 2000, you wrote:
> pause -1 causes a seg fault in gnuplot3.8b without opengl!
> This is a bug in gnuplot3.8b. Setting the terminal to
> opengl and typing 'pause -1' results in 'I do not understand'
> This is a bug in gnuplot_opengl.
OK fixed that:
void
process_input(void)
{
//reads a line from stdin and processes it.
char buffer[255]; //should be long enough for a single command line
char rd_buf='a';
int length,err;
struct opengl_command *tmp;
do {
length=0;
do {
err=read(fileno(stdin),&rd_buf,1);
if(err>=0) length+=err;
else { fprintf(stderr,"Could not read stdin?\n");
exit(-1);
};
//This is a hack to stop process if gnuplot crashes.
if(!err && check_buffered_input())
{
fprintf(stderr,"Broken pipe. Terminating\n");
exit(-1);
};
>
> Wolfgang
>
> ========================================================================
> Wolfgang Schadow Phone: +1-604-222-1047 ext. 6453 (office)
> TRIUMF +1-604-875-6066 (home)
> Theory Group FAX: +1-604-222-1074
> 4004 Wesbrook Mall
> Vancouver, B.C. V6T 2A3 email: schadow@triumf.ca
> Canada www : http://www.triumf.ca/people/schadow
>
> ========================================================================
[[[[ unsubscribe from info-gnuplot-beta via majordomo@dartmouth.edu ]]]]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic