]> sourceware.org Git - lvm2.git/commit
Do not break pipes
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 28 Jan 2011 16:08:39 +0000 (16:08 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 28 Jan 2011 16:08:39 +0000 (16:08 +0000)
commit61e665d65bf4d43a8cebf2cc2e022ccf86730107
treea7b6af67561d0295fd533a30d280df3447a93f01
parent2d8c68d0976cb3f6102997b92fb36afb51d247a5
Do not break pipes

As the option 'set -e -o pipefail' is very sensite on pipe breaking
stop using '-q' for grep commands.

Otherwise this command (with large enough table) would fail:

 dmsetup table | egrep -q

with exit code 141 (128 + SIGPIPE)

As Peter suggested, he prefers to keep '-o pipefail' - so make sure all
piped commands will read the whole output and will not exit too early.
test/lib/check.sh
This page took 0.037484 seconds and 5 git commands to generate.