Re: [Flightgear-devel] Patch to protect terrasync SVN from ^C

2010-03-03 Thread Frederic Bouvier
Hi Jari, - Jari Häkkinen a écrit : Great, I haven't had an opportunity to run the new version yet. I took time to compile though, and there is a problem compiling terrasync.cxx on mac because of Apples typedef of the signal handler. I attached a small fix. Your mail remind me I had a

Re: [Flightgear-devel] Patch to protect terrasync SVN from ^C

2010-03-01 Thread Martin Spott
I'm expieriencing difficulties to compile 'terrasync' after the latest patch. While PLIB's socket seems to be the target, the type socket interferes with the system headers: g++ -g -O3 -march=opteron -DHAVE_CONFIG_H -I. -I../../src/Include -I/usr/include/subversion-1 -I/usr/include/apr-1.0

Re: [Flightgear-devel] Patch to protect terrasync SVN from ^C

2010-03-01 Thread Martin Spott
ooops ! Martin Spott wrote: @@ -295,7 +295,7 @@ write(1, msg, sizeof(msg) - 1); terminating = true; signal(param, prior_signal_handlers[param]); -socket.close(); +netSsocket.close(); ^^ Sorry, Martin. -- Unix _IS_ user friendly - it's just

Re: [Flightgear-devel] Patch to protect terrasync SVN from ^C

2010-03-01 Thread Frederic Bouvier
Hi Martin, - Martin Spott a écrit : I'm expieriencing difficulties to compile 'terrasync' after the latest patch. While PLIB's socket seems to be the target, the type socket interferes with the system headers: g++ -g -O3 -march=opteron -DHAVE_CONFIG_H -I. -I../../src/Include

Re: [Flightgear-devel] Patch to protect terrasync SVN from ^C

2010-03-01 Thread Martin Spott
Frederic Bouvier wrote: Anyway, I won't be able to commit anything until this evening (CET time). No problem, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! --

Re: [Flightgear-devel] Patch to protect terrasync SVN from ^C

2010-02-28 Thread Alex Perry
Done. Also added the modified source file. On Sun, Feb 28, 2010 at 12:09 AM, Frederic Bouvier fredfgf...@free.fr wrote: Hi Alex, Please resend this patch gzip and attached. I can't use it as it is. -Fred --

Re: [Flightgear-devel] Patch to protect terrasync SVN from ^C

2010-02-28 Thread Tim Moore
Whoops, I'm a bit late with my comments, but all the same... You can't safely use C++ stream functions in a signal handler. Why does terrasync need to be protected from interruption like this? Does the SVN update really get corrupted if it is interrupted? Tim On Sun, Feb 28, 2010 at 6:50 AM,