Changeset 1182:cc96a4dfb3d1 in freeDiameter for freeDiameterd/main.c
- Timestamp:
- Jun 6, 2013, 12:25:23 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameterd/main.c
r1159 r1182 87 87 } 88 88 89 /* Parse the configuration file */ 90 CHECK_FCT_DO( fd_core_parseconf(conffile), goto error ); 91 92 /* Start the servers */ 93 CHECK_FCT_DO( fd_core_start(), goto error ); 94 89 95 /* Allow SIGINT and SIGTERM from this point to terminate the application */ 90 CHECK_POSIX( pthread_create(&signals_thr, NULL, catch_signals, NULL) ); 91 92 /* Parse the configuration file */ 93 CHECK_FCT( fd_core_parseconf(conffile) ); 94 95 /* Start the servers */ 96 CHECK_FCT( fd_core_start() ); 96 CHECK_POSIX_DO( pthread_create(&signals_thr, NULL, catch_signals, NULL), goto error ); 97 97 98 98 TRACE_DEBUG(INFO, FD_PROJECT_BINARY " daemon initialized."); 99 99 100 100 /* Now, just wait for termination */ 101 101 CHECK_FCT( fd_core_wait_shutdown_complete() ); … … 105 105 106 106 return 0; 107 error: 108 CHECK_FCT_DO( fd_core_shutdown(), ); 109 CHECK_FCT( fd_core_wait_shutdown_complete() ); 110 fd_thr_term(&signals_thr); 111 return -1; 107 112 } 108 113
Note: See TracChangeset
for help on using the changeset viewer.