unix.linux.proc: Older kernels don't have enough fields in /proc/pid/stat. Pad it.

db4
Doug Coleman 2013-02-25 10:07:05 -08:00
parent 9dfa305561
commit 48dff3e6f1
1 changed files with 1 additions and 0 deletions

View File

@ -304,5 +304,6 @@ TUPLE: pid-stat pid filename state parent-pid group-id session-id terminal#
"stat" proc-pid-path
proc-first-line
" " split harvest
52 "0" pad-tail ! XXX: Kernel 3.2 doesn't have enough entries
[ dup string>number [ nip ] when* ] map
[ pid-stat boa ] input<sequence ;