From: SourceForge.net <no...@so...> - 2003-11-25 23:45:54
|
Patches item #848752, was opened at 2003-11-25 06:36 Message generated for change (Comment added) made by larsl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=303248&aid=848752&group_id=3248 Category: None Group: None >Status: Open Resolution: None Priority: 5 Submitted By: Dave R (trepan) Assigned to: Lars Luthman (larsl) Summary: bzadmin resize exits (linux side) Initial Comment: Here's a patch for ServerLink.cxx that works for linux. It just masks the SIGWINCH signal (thanks Tim). sigblock() doesn't seem to be working even though _BSD_SOURCE is turned on (maybe _POSIX_SOURCE is overriding it?), so I used sigprocmask() instead. I'd also add a patch line in the Makefile.am: ServerLink.cxx: @top_srcdir@/src/bzflag/ServerLink.cxx cp -pR @top_srcdir@/src/bzflag/ServerLink.cxx . patch ServerLink.cxx < ServerLink.patch Easy solution if you don't want to mess with the stuff in the bzflag dir. P.S. I don't have a Windows box to try and fix it on that OS. ---------------------------------------------------------------------- >Comment By: Lars Luthman (larsl) Date: 2003-11-26 00:45 Message: Logged In: YES user_id=60497 OK, perhaps it wasn't that simple. =P ---------------------------------------------------------------------- Comment By: Lars Luthman (larsl) Date: 2003-11-25 21:24 Message: Logged In: YES user_id=60497 It turned out that the bug was in BZAdminClient.cxx. A return value of -1 from ServerLink.cxx doesn't necessarily mean "lost connection", only "no new messages", but bzadmin thought that -1 meant that it had been disconnected, and thus it exited. It has been fixed now. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=303248&aid=848752&group_id=3248 |