weird forks

2001-10-25 Thread Maxim Goncharov
Hi all, I ran into the problem with forking and I am not able to figure out what happens. Here is the code (let's call the program server): $pid = open(HHH,"|- "); if($pid){ print HHH "something\n"; }else{ exec "client" } Notice that I do not call close(HHH) because I want the parent just t

Re: weird forks

2001-10-25 Thread smoot
> Maxim Goncharov <[EMAIL PROTECTED]> said: > I ran into the problem with forking and I am not able to figure out what > happens. Here is the code (let's call the program server): > > $pid = open(HHH,"|- "); > if($pid){ > print HHH "something\n"; > }else{ > exec "client" > } > > Notice that