After I sent a kill SIGSTOP
signal to another process, how can I check if that process actually stopped?
That process is not a child process. And not to use the approach that reads the process table like,
ps -ef/aux
You can see that in the directory /proc
.
consider process id 17858
. You are sending the signal SIGSTOP
to that process. Now the process is stopped. In /proc
, 17858
( name of directory is process ID). directory is there. In that, status file is available. Using that one we can get the status of the file. For that process is status is like this.
State: T (stopped)