• Tom Lane's avatar
    Fix failure to check for open() or fsync() failures. · 8528e3d8
    Tom Lane authored
    While it seems OK to not be concerned about fsync() failure for a
    pre-existing signal file, it's not OK to not even check for open()
    failure.  This at least causes complaints from static analyzers,
    and I think on some platforms passing -1 to fsync() or close() might
    trigger assertion-type failures.  Also add (void) casts to make clear
    that we're ignoring fsync's result intentionally.
    
    Oversights in commit 2dedf4d9, noted by Coverity.
    8528e3d8
xlog.c 383 KB