diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-10 12:55:23 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-10 12:55:23 +0200 |
commit | e5cb8042c9f0c6374c4f14bf7ff3f4fe3cdcd155 (patch) | |
tree | 31c27f46ba0a5f4981aa7522b11d133e1288c26d /src/ipcpd/shim-udp/main.c | |
parent | 0ec8f7b6d977a9cc469445d4990d432253f979d9 (diff) | |
parent | 155fbfb32b9a69705a06a5771bd146c1bed22821 (diff) | |
download | ouroboros-e5cb8042c9f0c6374c4f14bf7ff3f4fe3cdcd155.tar.gz ouroboros-e5cb8042c9f0c6374c4f14bf7ff3f4fe3cdcd155.zip |
Merged in sandervrijders/ouroboros/be-create-ipcp (pull request #200)
ipcp, irmd, lib: Notify IRMd upon IPCP initialization
Diffstat (limited to 'src/ipcpd/shim-udp/main.c')
-rw-r--r-- | src/ipcpd/shim-udp/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c index 9d6d15a7..8d9ac25c 100644 --- a/src/ipcpd/shim-udp/main.c +++ b/src/ipcpd/shim-udp/main.c @@ -1609,6 +1609,12 @@ int main(int argc, char * argv[]) pthread_rwlock_unlock(&_ipcp->state_lock); + if (ipcp_create_r(getpid())) { + LOG_ERR("Failed to notify IRMd we are initialized."); + close_logfile(); + exit(EXIT_FAILURE); + } + pthread_join(_ap_instance->mainloop, NULL); shim_ap_fini(); |