Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: Improved game starting (version 8)
Home

[Freeciv-Dev] Re: Improved game starting (version 8)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <ChrisK@xxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Improved game starting (version 8)
From: Daniel L Speyer <dspeyer@xxxxxxxxxxx>
Date: Sun, 20 Jan 2002 15:12:17 -0500 (EST)

On Sun, 20 Jan 2002, Christian Knoke wrote:

> On Sun, Jan 20, 2002 at 12:51:54AM -0500, Daniel L Speyer wrote:
> > Here is yet another version of the improved game starting patch.  The
> > server control buttons now send there commands over the network, and there
> > is now a checkbox to start the game immediately.  I have also moved the
> > extern statement from connectdlg.c to connectdlg.h.
> 
> This patch (which applied cleanly to current CVS) still hangs
> on each load of a saved game, at the point when I chose a player
> name. The button looks "pressed" and the GUI freezes.
> 
> I'm very uncommon with the use of gdb, but it seems to show me
> that the program hangs in line 597 of connectdlg.c:
> 
> 595       write(stdin_pipe[1],"cmdlevel hack first\n",14);
> 596       c=0;
> 597       while(!read(stdout_pipe[0],&c,1) || c!='>'); /*Wait for responce 
> from the server*/
> 

Hmm, I still have no problem, even with the game you supplied.

Try replacing line 597 with 
while(!read(stdout_pipe[0],&c,1) || c!='>') fprintf(stderr,"<%c>",c);
and see what gets output.

Have you done anything unusual with your server interface?  Are you using
readline?  Are you using localization?

This is the sort of place that caused lots of trouble in setting up, but
I'd thought I finnally had it.

--Daniel Speyer
"May the /src be with you, always"


> Christian
> 
> -- 
> * Christian Knoke                           +49 4852 92248 *
> * D-25541 Brunsbuettel                  Wurtleutetweute 49 *
> * * * * * * * * *  Ceterum censeo Microsoft esse dividendum.
> 
> 
> 



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