Follow-up Comment #2, bug #21083 (project freeciv):

See also bug #21683.

> Maybe the lock is being kept longer than necessary? 
> Why the logfile would need to be locked when one is doing the 
> network part?
The lock is in log_real() around the call to log_write(). log_write() does two
things: writes to the file, and calls log_callback, which in this case is
con_handle_log(), which sends stuff to the network, causing recursive hilarity
to ensue.

It feels like some of the things in con_handle_log() don't want to be called
by multiple threads simultaneously, though.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21083>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to