Applies on top of ltt-control-0.55-
16102008.
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
git-svn-id: http://ltt.polymtl.ca/svn@3122
04897980-b3bd-0310-b5e0-
8ef037075253
show_info();
- if(daemon_mode) {
- ret = daemon(0, 0);
-
- if(ret == -1) {
- perror("An error occured while daemonizing.");
- exit(-1);
- }
- }
-
/* Connect the signal handlers */
act.sa_handler = handler;
act.sa_flags = 0;
if(ret = channels_init())
return ret;
+ if(daemon_mode) {
+ ret = daemon(0, 0);
+
+ if(ret == -1) {
+ perror("An error occured while daemonizing.");
+ exit(-1);
+ }
+ }
+
tids = malloc(sizeof(pthread_t) * num_threads);
for(i=0; i<num_threads; i++) {