In batch mode, most messages go into the core.txt.N file instead of stdout.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
The message gets printed three times on typical systems. I can fix that if you think it's worth the few extra lines.
My thought was to do a single block at the start of the script that checks for the two gdb binaries and if neither is found it exits cleanly (in particular since this runs on boot I think we want it to not whine to the console from rc.d). I think I would like a way to have it whine if run interactively, but not from rc.d whcih we could maybe do via some optional flag that rc.d/savecore always passes to it?
I was thinking the same things, but wanted to whip this out while the topic was hot. On second thought, I'll just go ahead and make those changes now.
crashinfo: add "batch" mode and use it during boot
In batch mode, most messages go into the core.txt.N file
instead of stdout.
usr.sbin/crashinfo/crashinfo.8 | ||
---|---|---|
30 ↗ | (On Diff #28915) | Note to self: Fix on commit. |