working with a null process and infinite loop