Skip to content
Snippets Groups Projects
  • Sean Bright's avatar
    f726f119
    utils: Add convenience function for setting fd flags · f726f119
    Sean Bright authored
    There are many places in the code base where we ignore the return value
    of fcntl() when getting/setting file descriptior flags. This patch
    introduces a convenience function that allows setting or clearing file
    descriptor flags and will also log an error on failure for later
    analysis.
    
    Change-Id: I8b81901e1b1bd537ca632567cdb408931c6eded7
    f726f119
    History
    utils: Add convenience function for setting fd flags
    Sean Bright authored
    There are many places in the code base where we ignore the return value
    of fcntl() when getting/setting file descriptior flags. This patch
    introduces a convenience function that allows setting or clearing file
    descriptor flags and will also log an error on failure for later
    analysis.
    
    Change-Id: I8b81901e1b1bd537ca632567cdb408931c6eded7
alertpipe.c 3.18 KiB