Use sigsuspend to wait for X server instead of waitpid