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... |