#44948: readline_atexit() Open Date: 2022-06-26 01:57 Last Update: 2022-06-26 01:57 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44948 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44948 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-06-26 01:57 Updated by: cazfi * New Ticket "readline_atexit()" created --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Patches Status: Open Priority: 5 - Medium MileStone: (None) Component: Server Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket 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 information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/44948 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44948