• Darrick J. Wong's avatar
    libext2fs: support atexit cleanups · dc248a10
    Darrick J. Wong authored
    
    
    Use the atexit() function to provide a means for the library to clean
    itself up on program exit.  This will be used by the undo IO manager
    to flush the undo file state to disk if the program should terminate
    without closing the io channel, since most e2fsprogs clients will
    simply exit() when they hit errors.
    
    This won't help for signal termination; client programs must set
    up signal handlers.
    Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    dc248a10
ext2fsP.h 4.45 KB