lseek: avoid bash 3.2 broken pipe bug
authorEric Blake <eblake@redhat.com>
Mon, 22 Feb 2010 22:15:56 +0000 (15:15 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 22 Feb 2010 23:01:13 +0000 (16:01 -0700)
commite2acc5db9572b477a9ba0fdcdf9e38e235281ca0
treea35f4789fd333eac84772759ca0f86af2a374707
parent7ca1a746ebe67827fd1fcbac28172879a649cefd
lseek: avoid bash 3.2 broken pipe bug

Avoid a spurious message caused by SIGPIPE handling, as well as
avoiding bash 3.2 messages even when SIGPIPE is not handled.

* m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
warning from bash 3.2.
Reported by Ben Pfaff, with analysis from Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/lseek.m4