Permalink
Browse files

show /proc/self/limits.

  • Loading branch information...
1 parent 4386f8b commit fbeda15e738b3c61b0ffe0d8d41e52584dcb024f @akr akr committed Jun 2, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 chkbuild/build.rb
View
@@ -300,9 +300,12 @@ def show_options
end
def show_process_status
- return unless File.exist? '/proc/self/status'
- @logfile.start_section 'process-status'
- puts File.read('/proc/self/status') # GNU/Linux
+ if File.exist? '/proc/self/status' # GNU/Linux
+ self.run('cat', '/proc/self/status', :section => 'process-status')
+ end
+ if File.exist? '/proc/self/limits' # GNU/Linux
+ self.run('cat', '/proc/self/limits', :section => 'process-limits')
+ end
end
def do_build

0 comments on commit fbeda15

Please sign in to comment.