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?
0 · ·