restart process from PID

3 views
Skip to first unread message

real time

unread,
Apr 16, 2023, 7:41:13 AM4/16/23
to inside...@googlegroups.com
Hi All , 

I have killed one process using command kill -9 <pid> , after that the process sends SIGCHLD signal to parent process  . 
The handler get called for signal SIGCHLD , 
now i want to restart the process. How can I restart the killed process , any ideas ?
I have PID Of the killed process.



Regards,
Mehul

Anil Kumar Pugalia

unread,
Apr 19, 2023, 2:38:08 AM4/19/23
to inside...@googlegroups.com

That is gone now. Isn't the PID now all cleaned up?

Regards
Anil
Passion: https://sysplay.in (Playing with Systems)
real time wrote on 16/04/23 5:11 pm:
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAFO2MTc5Q%3DbS5O3qxNjagCw1iGRCPyQf-mgLJCVEmkQ3nif0cw%40mail.gmail.com.

Rajesh

unread,
Apr 19, 2023, 2:51:03 AM4/19/23
to inside...@googlegroups.com
you should be doing 'fork()/exec()' of the process need to restart, in parent sighandler.

--Regards,
rajesh

real time

unread,
Apr 21, 2023, 2:56:12 AM4/21/23
to inside...@googlegroups.com
Hi Anilsir/Rajesh , 

Thanks for the reply ...PID is cleaned  and  we mark it as non-restartable.

Regards,
Mehul

Reply all
Reply to author
Forward
0 new messages