Re: Ruby BuiltIn functions gid
Process.gid -> aFixnum
Returns the group id for this process.
Process.gid » 500
gid=
Process.gid= aFixnum -> aFixnum
Sets the group id for this process. kill
Process.kill( aSignal, [ aPid ]+ ) -> aFixnum
Sends the given signal to the specified process id(s), or to the current process if aPid is zero. aSignal may be an integer signal number or a POSIX signal name (either with or without a SIG prefix). If aSignal is negative (or starts with a ``-'' sign), kills process groups instead of processes. Not all signals are available on all platforms.
trap("SIGHUP") { close_then_exit }
Process.kill("SIGHUP", 0) pid
Process.pid -> aFixnum
Returns the process id of this process. Not available on all platforms.
Process.pid » 1488
__________________ Shaalini.S Be the Best of Whatever you are... |