Skip to contentSkip to conversation

proc_pid_stat() question

DISCUSSION Badari Pulavarty 1 participant 1 message Apr 14, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

It may be too dumb question ..

I was wondering how does proc_pid_stat() make sure the task its looking at doesn't exit while its looking at task->tty etc.. ?

I was looking at OOPS, where proc_pid_stat() has garbage for task->tty, so "ps" panics.

Thanks,
Badari