Re: A zvt fork question

Hassan Aurag <> writes:
> then I get two numbers, the exit number which is 0 for success and 
> before it "usually" (sometimes after it" the pid number.

Grab your favorite UNIX book and read about fork(). You have two
processes after the fork; each does the "print pid".  The parent's pid
variable is the child's pid, the child's pid variable is 0.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]