Hello, This was not wait(2) related problem. Since the environment variable $SHELL is set to this shell program, /usr/bin/less invoked $SHELL, resulting the same shell prompt appearing. It seemed to me as if wait(2) returned before child process terminates. I'm sorry and thank you very much. --- Tetsuo Handa -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/