armbian-build/lib/functions/logging
Ricardo Pardini bf3f346bee
armbian-next: still fighting tee leaking: now I think I won, again
- avoid using the "last resort, use lazy umount" by killing tee_pid _and descendants_ before hand. Works!
- introduce `get_descendants_of_pid_array()` using recursive trick to get all descendants
- do not `unset CURRENT_LOGFILE` -- during `logging_error_show_log()` (from SHOW_LOG=no days)
  - do `unset CURRENT_LOGFILE` immediately before processing logs -- although it magically survives. mysteries of traps in bash...
- `declare -g` instead of `export` for `start_logging_section()`
- don't `check_and_close_fd_13()` in `run_cleanup_handlers()`
- do run `check_and_close_fd_13()`, but only after archiving the old logs (in logging trap!)
- add a default error for unhandled TRAP's -- of which should be done
- fix reset of `global_tee_pid=0` in section-logging
2023-02-18 07:43:40 -03:00
..
capture.sh armbian-next: lib changes - MEGASQUASH - squashed changes from c9cf3fc241cfb4c872f4aef7bbc41d5854db7ea3 to 6809de3d6063cb041205a8318e19da6a4dee68c9 ref extensions_08_10_2022_pre_v30 2023-02-18 07:38:46 -03:00
display-alert.sh armbian-next: introduce POOR_MAN_PROFILER=yes (under ANSI_COLOR=none) 2023-02-18 07:43:00 -03:00
export-logs.sh armbian-oleg: better logs; only include non-empty .log files 2023-02-18 07:42:22 -03:00
logging.sh armbian-next: still fighting tee leaking: now I think I won, again 2023-02-18 07:43:40 -03:00
runners.sh armbian-next: still fighting tee leaking: now I think I won, again 2023-02-18 07:43:40 -03:00
section-logging.sh armbian-next: still fighting tee leaking: now I think I won, again 2023-02-18 07:43:40 -03:00
stacktraces.sh armbian-next: optimize for CONFIG_DEFS_ONLY=yes, skipping stacktraces/git info 2023-02-18 07:42:59 -03:00
trap-logging.sh armbian-next: still fighting tee leaking: now I think I won, again 2023-02-18 07:43:40 -03:00
traps.sh armbian-next: still fighting tee leaking: now I think I won, again 2023-02-18 07:43:40 -03:00