RPM will give the confusing output per bug 155701: error: %post(libgcc-4.0.0-0.42.i386) scriptlet failed, exit status 0 if a scriptlet is terminated by a signal. It would be nice if it displayed that as you'd expect.
Created attachment 114092 [details] patch Entirely untested uncompiled unreviewed patch for this. Win more points by using strsignal and printing the signal name ;)
Thanks commited to HEAD and 4.4.x branch. It'll get pulled in next rpm 4.4.x branch release.