From 2fd57e62fa1c08c5f404e1e7a0742fecc283f917 Mon Sep 17 00:00:00 2001 From: dlukes <dlukes@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Fri, 30 Jan 2009 21:14:00 +0000 Subject: [PATCH] The former URL no longer exist. By the way, even after the reading of such artile, I didn't understand why we do the things this way instead of closing descriptor then calling daemon() In advance, our current code doesn't handle the SIGHUP race condition ... git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2726 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/smartd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index 2339fbf54..cc23ebdc6 100644 --- a/sm5/smartd.cpp +++ b/sm5/smartd.cpp @@ -138,7 +138,7 @@ extern const char *os_solaris_ata_s_cvsid; #ifdef _WIN32 extern const char *daemon_win32_c_cvsid, *hostname_win32_c_cvsid, *syslog_win32_c_cvsid; #endif -const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.435 2009/01/30 14:07:07 dlukes Exp $" +const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.436 2009/01/30 21:14:00 dlukes Exp $" ATACMDS_H_CVSID CONFIG_H_CVSID #ifdef DAEMON_WIN32_H_CVSID DAEMON_WIN32_H_CVSID @@ -1312,7 +1312,7 @@ bool WaitForPidFile() // Forks new process, closes ALL file descriptors, redirects stdin, // stdout, and stderr. Not quite daemon(). See -// http://www.iar.unlp.edu.ar/~fede/revistas/lj/Magazines/LJ47/2335.html +// http://www.linuxjournal.com/article/2335 // for a good description of why we do things this way. void DaemonInit(){ #ifndef _WIN32 -- GitLab