Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

linux services

Discussion in 'Getting Started' started by gagan407, Oct 11, 2018.

  1. gagan407

    gagan407 New Member

    Joined:
    Oct 11, 2018
    Messages:
    1
    Likes Received:
    0
    i am using centos and and i wrote a c program to restart the process whenever the process is killed with SIGSEGV & SIGALRM but i am able to that for only once when ever i am trying to kill for the second time it is not killing the process


    (Log in to hide this advertisement)


    crashlog("caught the sigsegv signal");
    system("service process restart");
    release_resourses();
    kill(getpid(), sig);


    in release resources i am removing the ips form network
     

Share This Page