added getchar(), to be able to get pid of the process