#44948: readline_atexit() Open Date: 2022-06-26 01:57 Last Update: 2022-06-26 02:14 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 02:14 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted * Milestone Update from (None) to 3.0.3 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Patches Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.3 Component: Server Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- 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