Tíquete #44948

readline_atexit()

: 2022-06-26 07:57 Última Atualização: 2022-07-04 14:17

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
6

Details

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
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
  • Marco Update from (Nenhum) to 3.0.3 (fechado)
2022-06-27 10:51 Updated by: cazfi
  • Resolução Update from Accepted to Nenhum
Comentário

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

2022-06-30 07:16 Updated by: cazfi
  • Resolução Update from Nenhum to Accepted
2022-07-04 14:17 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Login