LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   restart FTP and SSH when it is killed ???? (https://www.linuxquestions.org/questions/programming-9/restart-ftp-and-ssh-when-it-is-killed-552144/)

culin 05-08-2007 12:09 AM

restart FTP and SSH when it is killed ????
 
Hi friends,
can anyone tell me how to monitor the system services..i.e. say i am running vsftpd and i got the pid of the vsftpd running and i am doing a waitpid() on this pid, now from the other terminal if i kill this pid(vsftpd) then waitpid() should return the pid of the process that is killed..... but unlike for other processes(other than daemons,user created processess) waitpid () is not returning the pid of the process that is killed... please help me
thanks ... :)

chrism01 05-08-2007 01:26 AM

Which lang are you using and what is waitpid returning instead of the expected pid. Please show example code.


All times are GMT -5. The time now is 07:18 PM.