Project

General

Profile

« Previous | Next » 

Revision 13237

fix: lib/sh/util.sh: die_e(): treat SIGPIPE as benign error

View differences:

util.sh
626 626
die_e() # usage: cmd || [benign_error=1] die_e [|| handle error]
627 627
{
628 628
	save_e; log++ kw_params benign_error
629
	if test "$e" = "$(sig_e SIGPIPE)"; then benign_error=1; fi
629 630
	if test "$benign_error"; then log_local; log++; fi
630 631
	type="${benign_error:+info}" die "command exited with \
631 632
$(if test "$benign_error"; then echo status; else echo error; fi) $e"

Also available in: Unified diff