armbian-build/lib/functions/logging
Ricardo Pardini 62d948b1b4
armbian-next: still fighting tee leaking under duress, and I think I won
- call `check_and_close_fd_13()` directly when `exit_with_error()` called, don't wait for trap
- store PID spawned by `do_with_logging()` under `$global_tee_pid`
- `check_and_close_fd_13()`:
  - sprinkle with `sync` to give a chance for stuff to die gracefully
  - check if `$global_tee_pid` is set and actually a running PID, if so, kill it
  - do not blindly "wait" for stuff, instead, kill it and wait for it to die -- 100% more likely to not hang ;-)
2023-02-18 07:43:31 -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 under duress, and I think I won 2023-02-18 07:43:31 -03:00
runners.sh armbian-next: chroot_sdcard_apt_get_update() to replace and better log chroot_sdcard_apt_get update 2023-02-18 07:43:19 -03:00
section-logging.sh armbian-next: still fighting tee leaking under duress, and I think I won 2023-02-18 07:43:31 -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: logging: squash nasty leaking file descriptor bug due to "tee" 2023-02-18 07:43:14 -03:00
traps.sh armbian-next: still fighting tee leaking under duress, and I think I won 2023-02-18 07:43:31 -03:00