View Single Post
  #48 (permalink)  
Old 04-19-2008, 01:21 AM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default 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...
Reply With Quote