Unverified Kaydet (Commit) 11276ce5 authored tarafından paledega's avatar paledega Kaydeden (comit) GitHub

Update daemon.c

üst a294df87
......@@ -44,17 +44,6 @@ static void skeleton_daemon()
/* Set new file permissions */
/* Change the working directory to the root directory */
/* or another appropriated directory */
/* 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