forks twice to create third process for bash shell