exit writing pipe with 0, exit from the filter process with the filter command's return value