View Single Post
  #49 (permalink)  
Old 04-21-2008, 05:05 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

ppid
Process.ppid -> aFixnum

Returns the process id of the parent of this process. Always returns 0 on NT. Not available on all platforms.

print "I am ", Process.pid, "\n"
Process.fork { print "Dad is ", Process.ppid, "\n" }

produces:


I am 1490
Dad is 1490

setpgid
Process.setpgid( aPid, anInteger ) -> 0
Sets the process group id of aPid (0 indicates this process) to anInteger. Not available on all platforms.

setpgrp

Process.setpgrp -> 0
Equivalent to setpgid(0,0). Not available on all platforms.
__________________
Shaalini.S
Be the Best of Whatever you are...
Reply With Quote