Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
i am programming in ruby but its kinda similar to perl.
i can write the maximum amount to a pipe in a child process by a continual loop. Once the pipe is full, it goes back to the parent process where it waits. I want to exit the program once the pipe is full? Ani ideas as to how:
here is my psuedo ruby code
rd, wr = my read pipes and write pipes
write to pipe
count++ /*store the size of pipe*/
so once the pipe is full, it wont let me write to it and i go back up to the parent process and wait indefinetly. Any suggestions?