Skip to content
Browse files

Fix field order for /proc/self/stat in processinfo_linux32.cpp SERVER…

…-5272

There are other fields that we aren't fetching, but some are only in
newer kernels.
  • Loading branch information...
1 parent 4e202ec commit efd5a0582a41cf2d8b4d4306da203e96d827fe07 @RedBeard0531 RedBeard0531 committed Mar 12, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/mongo/util/processinfo_linux2.cpp
View
5 src/mongo/util/processinfo_linux2.cpp
@@ -76,8 +76,8 @@ namespace mongo {
&_flags, &_min_flt, &_cmin_flt, &_maj_flt, &_cmaj_flt,
&_utime, &_stime, &_cutime, &_cstime,
&_priority, &_nice,
- &_alarm,
&_nlwp,
+ &_alarm,
&_start_time,
&_vsize,
&_rss,
@@ -158,9 +158,10 @@ namespace mongo {
long _nice;
long _nlwp; // %ld
- // The time in jiffies before the next SIGALRM is sent to the process due to an interval timer.
+ // number of threads
unsigned long _alarm;
+ // The time in jiffies before the next SIGALRM is sent to the process due to an interval timer. (unused since 2.6.17)
unsigned long _start_time; // %lu
// The time in jiffies the process started after system boot.

0 comments on commit efd5a05

Please sign in to comment.
Something went wrong with that request. Please try again.