Skip to content

Commit

Permalink
Fix broken pipe due to /usr/bin/ldd (netty#9606)
Browse files Browse the repository at this point in the history
Motivation:

The build script for the module Netty Transport Native Epoll can cause
intermittent build break due to broken pipe by /usr/bin/ldd. This issue
likely to occur on a build environment with multiple processors.

Modifications:

The root cause is that the consumer head command finishes earlier the
producer ldd command. Buffering the outputs of the ldd command by an
intermediate tail command avoids the broken pipe.

Result:

A build on multiple processors can finish successfully.

Signed-off-by: Tatsushi Inagaki <e29253@jp.ibm.com>
  • Loading branch information
inatatsu authored and normanmaurer committed Sep 26, 2019
1 parent 622cc23 commit fed552d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport-native-epoll/pom.xml
Expand Up @@ -208,7 +208,7 @@
<tasks>
<exec executable="sh" outputproperty="ldd_version">
<arg value="-c" />
<arg value="ldd --version | head -1" />
<arg value="ldd --version | tail | head -1" />
</exec>
<exec executable="uname" outputproperty="uname_os_version">
<arg value="-r" />
Expand Down

0 comments on commit fed552d

Please sign in to comment.