[ https://issues.apache.org/jira/browse/HDFS-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659997#comment-13659997 ]
Colin Patrick McCabe commented on HDFS-4831: -------------------------------------------- I took the liberty of removing #define_GNU_SOURCE, to squash this compiler warning: {code} /home/cmccabe/hadoop2/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:19:0: warning: "_GNU_SOURCE" redefined [enabled by default] <command-line>:0:0: note: this is the location of the previous definition {code} We don't need to define this file-by-file since it's a compiler flag now. > Performing direct read using libhdfs sometimes raises SIGPIPE (which in turn > throws SIGABRT) causing client crashes > ------------------------------------------------------------------------------------------------------------------- > > Key: HDFS-4831 > URL: https://issues.apache.org/jira/browse/HDFS-4831 > Project: Hadoop HDFS > Issue Type: Bug > Components: libhdfs > Affects Versions: 2.0.4-alpha > Reporter: Lenni Kuff > Attachments: HDFS-4831.001.patch > > > Reading using libhdfs sometimes raises SIGPIPE (which in turn throws SIGABRT > from JVM_handle_linux_signal). This can lead to crashes in the client > application. It would be nice if libhdfs handled this signal internally. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira