Skip to content
Snippets Groups Projects
  • Sean Bright's avatar
    2ffe52a1
    utils: Add convenience function for setting fd flags · 2ffe52a1
    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
    2ffe52a1
    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