View Single Post
  #51 (permalink)  
Old 04-22-2008, 08:59 PM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default Re: Ruby BuiltIn functions

uid=
Process.uid= anInteger -> aNumeric
Sets the (integer) user id for this process. Not available on all platforms.

wait

Process.wait -> aFixnum

Waits for any child process to exit and returns the process id of that child. Raises a SystemError if there are no child processes. Not available on all platforms.

Process.fork { exit 1; } » 1500
Process.wait » 1500
__________________
Shaalini.S
Be the Best of Whatever you are...
Reply With Quote