mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dbginfo.sh: save dbginfo.sh version to dbginfo.log
we do miss a simple way to see the dbginfo.sh version used by the customer for the debug generation. saving the version now to dbginfo.log Reported-by: Mike Storzer <MSTORZER@de.ibm.com> Reviewed-by: Mario Held <mario.held@de.ibm.com> Signed-off-by: Joern Siglen <siglen@de.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -10,6 +10,7 @@ Release history for s390-tools (MIT version)
|
||||
Changes of existing tools:
|
||||
|
||||
Bug Fixes:
|
||||
- dbginfo.sh: save dbginfo.sh version to dbginfo.log
|
||||
|
||||
* __v2.23.0 (2022-08-18)__
|
||||
|
||||
|
||||
@@ -1347,6 +1347,9 @@ print_version
|
||||
# saving stdout/stderr and redirecting stdout/stderr into log file
|
||||
exec 8>&1 9>&2 >"${LOGFILE}" 2>&1
|
||||
|
||||
# run print_version again to be logged in dbginfo.log
|
||||
print_version
|
||||
|
||||
# trap on SIGHUP=1 SIGINT=2 SIGTERM=15
|
||||
trap emergency_exit SIGHUP SIGINT SIGTERM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user