]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/bloat-o-meter: fix SIGPIPE
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 10 Nov 2016 18:46:13 +0000 (10:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Nov 2016 16:12:37 +0000 (08:12 -0800)
commitc514cf9022131ac3f7de8849cc9fdb696690b4c6
tree23149da3c276a2d1719d7d4aa73aedf47c58fa79
parent12be9325f3d5cbf13d1389cbf579678293a0923c
scripts/bloat-o-meter: fix SIGPIPE

Fix piping output to a program which quickly exits (read: head -n1)

$ ./scripts/bloat-o-meter ../vmlinux-000 ../obj/vmlinux | head -n1
add/remove: 0/0 grow/shrink: 9/60 up/down: 124/-305 (-181)
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr

Link: http://lkml.kernel.org/r/20161028204618.GA29923@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/bloat-o-meter