Hi all, when I'm running the following pipeline:
cat my_large_file.txt | head | wc
the process stops almost immediately. OK.
but when I run my java program
java MyProgramReadALargeFile my_large_file.txt | head | wc
the output from 'wc' is printed to stdout
but the java program is still running. How can it detects that the pipeline was closed ?
Thanks,