[hackers] [st][patch] output child WEXITSTATUS/WTERMSIG on abnormal termination
Hi, currently st is reporting a somewhat opaque error number when its
child process terminates abnormally:
% st sh -c 'exit 1'
child finished with error '256'
% st sh -c 'exit 2'
child finished with error '512'
% st sh -c 'kill -KILL $$'
child finished with error '9'
with the diff below it reports properly:
% ./st sh -c 'exit 1'
child exited with status 1
% ./st sh -c 'exit 2'
child exited with status 2
% ./st sh -c 'kill -KILL $$'
child terminated due to signal 9
Received on Tue Dec 11 2018 - 10:57:31 CET
This archive was generated by hypermail 2.3.0
: Tue Dec 11 2018 - 11:00:22 CET