This patch series moves all the exit related functions to a separate file - common/exit. This will remove the dependency to source non-related files to use these exit related functions. Thanks to Dave for suggesting this[1]. The second patch replaces exit with _exit in check file - I missed replacing them in [2]. [v1] -> v2 - Removed redundant sourcing of common/exit from common/{btrfs,ceph,dump,ext4,populate,punch,rc,repair,xfs}. Thanks to Zorro for pointing this out. - Moved the sourcing of common/exit in common/preamble from the beginning of the file to inside the function _begin_fstest() - Moved the sourcing of common/exit in check script from the patch 1 to patch 2 since patch 2 uses _exit(). - Replaced exit() with _exit in the trap handler registration in the check script. Thanks to Zorro for pointing this out. [v1] https://lore.kernel.org/all/cover.1745390030.git.nirjhar.roy.lists@xxxxxxxxx/ [1] https://lore.kernel.org/all/Z_UJ7XcpmtkPRhTr@xxxxxxxxxxxxxxxxxxx/ [2] https://lore.kernel.org/all/48dacdf636be19ae8bff66cc3852d27e28030613.1744181682.git.nirjhar.roy.lists@xxxxxxxxx/ Nirjhar Roy (IBM) (2): common: Move exit related functions to a common/exit check: Replace exit with _exit in check check | 44 ++++++++++++++++++------------------------- common/config | 17 +---------------- common/exit | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ common/preamble | 1 + common/punch | 5 ----- common/rc | 28 --------------------------- 6 files changed, 70 insertions(+), 75 deletions(-) create mode 100644 common/exit -- 2.34.1