[Commits] [wesnoth/wesnoth] 4b2935: campaignd: Create [campaigns] list in load_config(...

GitHub noreply at github.com
Mon Apr 20 01:00:35 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 4b2935bcb4e2505c8f1c3da3da67b1ab921a6506
      https://github.com/wesnoth/wesnoth/commit/4b2935bcb4e2505c8f1c3da3da67b1ab921a6506
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M src/campaign_server/campaign_server.cpp

  Log Message:
  -----------
  campaignd: Create [campaigns] list in load_config()

Needed for implementing config reloading.


  Commit: 911f59f72ae941f5cbc3b84689565541d9ceb298
      https://github.com/wesnoth/wesnoth/commit/911f59f72ae941f5cbc3b84689565541d9ceb298
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M src/campaign_server/campaign_server.cpp

  Log Message:
  -----------
  campaignd: Reload configuration on SIGHUP

It's a bit tricky right now because whoever changes the configuration
must make sure to do it within the flush interval or their changes may
be lost before they get to send SIGHUP to campaignd. Another issue is
that the campaigns list may change (new uploads, bumped download counts,
etc.) between editing the config file and sending SIGHUP, and any
changes in the on-memory version of the list will be irreversibly lost.

Hopefully soon I'll add some socket commands to address these
limitations.


Compare: https://github.com/wesnoth/wesnoth/compare/a9d113d533a8...911f59f72ae9


More information about the Commits mailing list