tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: 9.1: forcible coredump -> panic
> hello. Perhaps I missed something on this thread, but doesn't
> gcore(1) already do what you want?
Yes. I used it as one of the bases for my code. It is little but a
command-line wrapper around PT_DUMPCORE - presumably it won't work on a
process that's already traced, though that's not relevant for my use
case. The code backing PT_DUMPCORE was one of the things I looked at
when figuring out how to coredump another process. (Come to think of
it, I wonder what PT_DUMPCORE does with the "cwd of process versus cwd
of dumping thread" issue.)
I could probably have done something with another process, which does
gcore or equivalent when it's not reassured often enough. Maybe that
would have been suitable. Wouldn't have been as interesting as what I
picked, at the very least.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index