From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luciano Moreira - igLnx" Subject: Detecting deamons running Date: Fri, 28 Mar 2003 14:20:08 -0300 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <00b701c2f54e$4a57afb0$0b00a8c0@SPLUCIANO> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-c-programming@vger.kernel.org I have a application that run like a deamon, which write in a file its PID, that is used to stop it later by others programs. But, I ve noted that my users send signal 9 to stop deamons, and my application cannot remove its PID file, because it cannot handle singal 9, keeping its PID file at HD (FileSystem). Can someone sugest me a way to know the deamon's PID, without write it to a file ? OR How can I do to know if my deamon is running and get its PID ? Thanks, Luciano