summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-04-26 15:24:26 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-04-26 15:24:26 +0200
commit45b7d79088174303193f8772c9b14fed2011551e (patch)
tree4a34c3e83f4fa268528586b9db4fc2358860c274 /src/irmd/main.c
parent6be9ae98877f23b05f69e6006036fec0f6c9d338 (diff)
downloadouroboros-45b7d79088174303193f8772c9b14fed2011551e.tar.gz
ouroboros-45b7d79088174303193f8772c9b14fed2011551e.zip
lib: irm.h create_ipcp now returns pid_t
ipcp_create now returns the pid of the created process to allow for more efficient scripting.
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index c47bcffc..31dabebb 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -218,8 +218,8 @@ static int reg_name_entry_del_name(char * name)
return 0;
}
-static int create_ipcp(char * ap_name,
- enum ipcp_type ipcp_type)
+static pid_t create_ipcp(char * ap_name,
+ enum ipcp_type ipcp_type)
{
pid_t pid;
struct ipcp_entry * tmp = NULL;
@@ -254,7 +254,7 @@ static int create_ipcp(char * ap_name,
LOG_DBG("Created IPC process with pid %d", pid);
list_add(&tmp->next, &instance->ipcps);
- return 0;
+ return pid;
}
static int destroy_ipcp(instance_name_t * api)