Fix broken pipe due to /usr/bin/ldd (#9606)
Fix broken pipe due to /usr/bin/ldd (#9606)

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 <d275e2ddef1ea9d1d5759b035b351061bdc43719@jp.ibm.com>
gerdriesselmann/netty,gerdriesselmann/netty,gerdriesselmann/netty,gerdriesselmann/netty,gerdriesselmann/netty