Lai wrote:
>
> i would like to know whether there is any system call that can
> stop the prosess but not terminate the program.
You have to provide more information on how the application is designed.
As phrased your question does not make any sense.
If the program only uses one process, then all needed is a change of the
flow control. Instead of calling exit(), the program should move on,
doing whatever it should. No systemcall needed to do this.
If it uses a main process, and a child process that does the pinging,
then the main process kills the child and fires off a new one with new
arguments.
exit == this program has completed its task (0), or given up (!=0).
---
Henrik Nordström