Fixed another issue with setting a variable to denote when to read from pipe after SIGUSR1