comparison freeDiameterd/main.c @ 1411:a4fce08e49e4

freeDiameterd: fix daemon mode error handling
author Luke Mewburn <luke@mewburn.net>
date Tue, 18 Feb 2020 17:21:12 +1100
parents 4ddd4dcd6bb6
children 4768e3bf1c9b
comparison
equal deleted inserted replaced
1410:4ddd4dcd6bb6 1411:a4fce08e49e4
157 return ret; 157 return ret;
158 } 158 }
159 159
160 if (daemon_mode) { 160 if (daemon_mode) {
161 TRACE_DEBUG(INFO, "entering background mode"); 161 TRACE_DEBUG(INFO, "entering background mode");
162 CHECK_POSIX_DO( daemon(1, 0), goto error ); 162 CHECK_SYS( daemon(1, 0) );
163 } 163 }
164 164
165 CHECK_FCT( pidfile_create() ); 165 CHECK_FCT( pidfile_create() );
166 166
167 /* Initialize the core library */ 167 /* Initialize the core library */
"Welcome to our mercurial repository"