Can I send SIGCONT to a running process?

I know that SIGCONT continues the process previously stopped by SIGSTOP. Can I use SIGCONT several times without SIGSTOP? i, e, is the sequence below valid?

SIGSTOP to process A : The process stops
SIGCONT to process A : Process resumes
SIGCONT to process A : Process already runs - this SIGCONT has no effect 
SIGCONT to process A : Process already runs - this SIGCONT has no effect 
...
SIGSTOP to process A : The process stops
SIGCONT to process A : Process resumes
+5
source share
1 answer

Can you do this. TLPI says:

When sent to a stopped process, this signal forces the resume process (i.e. moving to a later date). when received by a process that is not currently stopped, this signal is ignored by default . A process can catch this signal so that it performs some action when it resumes.

APUE:

, SIGCONT , ; .

+7

All Articles