#43870: Client returns with EXIT_SUCCESS after failing to load tileset Open Date: 2022-02-15 11:33 Last Update: 2022-02-20 03:07 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/43870 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43870 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-02-20 03:07 Updated by: cazfi Comment: Going to push also to S2_6 (S3_0 patch applies) as this helps debugging efforts when porting to new environments (and that's what S2_6 is all about now - only used for platforms for which S3_0 is not easy to reach) --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.1 Component: Client common Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: Client is supposed to return EXIT_FAILURE when it aborts due to failed tileset load: -- log_error(_("Can't load requested tileset %s!"), forced_tileset_name); client_exit(); return EXIT_FAILURE; -- But client_exit() there never returns (should be marked noreturn, but that's another issue) to do that 'return EXIT_FAILURE'. Instead it does 'exit(EXIT_SUCCESS);' -- 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/43870 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43870