Module: Sys::Proc::Concern::System::LinuxGnu
- Includes:
- Helper, System::LinuxGnu
- Defined in:
- lib/sys/proc/concern/system/linux_gnu.rb
Overview
Provides specific Linux-GNU methods
Instance Method Summary collapse
-
#progname ⇒ String
Get program name.
-
#progname=(progname) ⇒ String
Set program name.
Instance Method Details
#progname ⇒ String
Get program name
33 34 35 |
# File 'lib/sys/proc/concern/system/linux_gnu.rb', line 33 def progname prctl.getprogname end |
#progname=(progname) ⇒ String
Set program name
22 23 24 25 26 27 28 |
# File 'lib/sys/proc/concern/system/linux_gnu.rb', line 22 def progname=(progname) self.helper.get('system/generic').setprogname(progname) do |s| prctl.setprogname(s.progname) self.progname end end |