Hi Linus,
No task (even init_task) can ever have task->rlim == NULL because that is
statically allocated whenever task_struct is allocated -- hence the check
in fs/proc/array.c:proc_pid_stat() is redundant.
Tested under 2.4.0-test11-pre2
Regards,
Tigran
--- linux/fs/proc/array.c Mon Oct 30 22:28:06 2000
+++ work/fs/proc/array.c Sat Nov 11 09:35:17 2000
@@ -372,7 +372,7 @@
task->start_time,
vsize,
mm ? mm->rss : 0, /* you might want to shift this left 3 */
- task->rlim ? task->rlim[RLIMIT_RSS].rlim_cur : 0,
+ task->rlim[RLIMIT_RSS].rlim_cur,
mm ? mm->start_code : 0,
mm ? mm->end_code : 0,
mm ? mm->start_stack : 0,