Ticket #44948

readline_atexit()

Date d'ouverture: 2022-06-26 07:57 Dernière mise à jour: 2022-07-04 14:17

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
6

Détails

Make server quit a bit cleaner by introducing readline_atexit().

- Register readline_atexit() as atexit() function, and not rl_callback_handler_remove()
- Call rl_callback_handler_remove() from readline_atexit()
- Also free last input line (the one where the "quit" command was given)
- Call readline_atexit() from server_quit() already, before exit(). This clear things *before* any other atexit handler. Having readline_atexit() also registered for atexit is just for backup for cases where server_quit() is bypassed.

Ticket History (3/11 Histories)

2022-06-26 07:57 Updated by: cazfi
  • New Ticket "readline_atexit()" created
2022-06-26 08:14 Updated by: cazfi
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
  • Jalon Update from (Aucun) to 3.0.3 (atteints)
2022-06-27 10:51 Updated by: cazfi
  • Résolution Update from Accepted to Aucun
Commentaire

There should be "#ifdef FREECIV_HAVE_LIBREADLINE" - it currently lacks "LIB" -part.

2022-06-30 07:16 Updated by: cazfi
  • Résolution Update from Aucun to Accepted
2022-07-04 14:17 Updated by: cazfi
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion