Kaydet (Commit) f1b6b360 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Merge branch "master" of github.com:paledega/scom.git

......@@ -70,17 +70,6 @@ static void skeleton_daemon()
/* Set new file permissions */
/* Change the working directory to the root directory */
/* or another appropriated directory */
chdir("/"); //FIXME: Try it for problems
/* Close all open file descriptors */
int x;
for (x = sysconf(_SC_OPEN_MAX); x>=0; x--)
close (x);
/* Open the log file */
openlog ("firstdaemon", LOG_PID, LOG_DAEMON);
openlog ("scom-daemon", LOG_PID, LOG_DAEMON);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment