summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-08 16:14:35 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-08 16:14:35 +0200
commit7d0fcf6392be6a738d0ba7450b62f8c48062279a (patch)
tree7d098bb422be8597dd2a30a60a08a44a89d5ebf6 /src/irmd/main.c
parenteb9f44379d5316e7f7e9311d7a66d2041eca743a (diff)
downloadouroboros-7d0fcf6392be6a738d0ba7450b62f8c48062279a.tar.gz
ouroboros-7d0fcf6392be6a738d0ba7450b62f8c48062279a.zip
lib/irmd/ipcpd/tools: fixes comments on eb9f443
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 75b8506e..a6403612 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -53,7 +53,7 @@
#endif
#ifndef IRMD_THREADPOOL_SIZE
- #define IRMD_THREADPOOL_SIZE 10
+ #define IRMD_THREADPOOL_SIZE 3
#endif
@@ -467,7 +467,7 @@ static int bootstrap_ipcp(instance_name_t * api,
return -1;
}
- LOG_INFO("Bootstrapped IPCP %s-%d. in DIF %s",
+ LOG_INFO("Bootstrapped IPCP %s-%d in DIF %s.",
api->name, api->id, conf->dif_name);
return 0;
@@ -1178,7 +1178,7 @@ static struct irm * irm_create()
i->sockfd = server_socket_open(IRM_SOCK_PATH);
if (i->sockfd < 0) {
- irm_destroy(instance);
+ irm_destroy(i);
return NULL;
}
@@ -1200,10 +1200,14 @@ int main()
sig_act.sa_sigaction = &irmd_sig_handler;
sig_act.sa_flags = SA_SIGINFO;
- sigaction(SIGINT, &sig_act, NULL);
- sigaction(SIGTERM, &sig_act, NULL);
- sigaction(SIGHUP, &sig_act, NULL);
- sigaction(SIGPIPE, &sig_act, NULL);
+ if (sigaction(SIGINT, &sig_act, NULL) < 0)
+ exit(1);
+ if (sigaction(SIGTERM, &sig_act, NULL) < 0)
+ exit(1);
+ if (sigaction(SIGHUP, &sig_act, NULL) < 0)
+ exit(1);
+ if (sigaction(SIGPIPE, &sig_act, NULL) < 0)
+ exit(1);
instance = irm_create();
if (instance == NULL)