Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: (PR#6142) S1_14: readline corrupts terminal
Home

[Freeciv-Dev] Re: (PR#6142) S1_14: readline corrupts terminal

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#6142) S1_14: readline corrupts terminal
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Sep 2003 06:05:06 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Jason Short wrote:
> [jdorje - Fri Sep 12 00:14:30 2003]:
> 
> 
>>If the server crashes, readline corrupts the terminal.
>>
>>I believe there was a fix for this in HEAD.
> 
> 
> This is PR#1854.
> 
> Unfortunately there's no patch in RT for it (AARGH!  Raimar!!!), but
> some work with cvs diff gives this.

And here's a patch adapted for 1.14.  Tested and works.

jason

Index: server/sernet.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/sernet.c,v
retrieving revision 1.95
diff -u -r1.95 sernet.c
--- server/sernet.c     2002/09/27 12:32:47     1.95
+++ server/sernet.c     2003/09/12 13:02:52
@@ -341,6 +341,7 @@
       rl_attempted_completion_function = freeciv_completion;
 
       readline_initialized = TRUE;
+      atexit(rl_callback_handler_remove);
     }
   }
 #endif /* HAVE_LIBREADLINE */

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