Commit 638c1724 authored by Mike Hibler's avatar Mike Hibler
Browse files

My contribution to the Linux MFS update project.

Avoid SIGPIPE caused by gzip exiting after finding unexpected stuff
at the end of the compressed kernel.
parent 39e00191
......@@ -719,6 +719,12 @@ sub check_kernel
return undef;
# XXX if gzip sees trailing garbage it exits non-zero causing a SIGPIPE in the
# while loop and making perl terminate.
# New Linux kernel compressions seem to cause this (on Ubuntu 18 at least).
open GZIP, "|$GZIP -dc > $kernel_file 2> /dev/null";
print GZIP $buffer;
while (read KERNEL, $buffer, 4096) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment