proc_pid_stat() question

From: Badari Pulavarty
Date: Wed Apr 14 2004 - 18:37:22 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/