diff options
author | Sander Vrijders <[email protected]> | 2016-08-22 16:28:39 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-08-22 16:28:39 +0200 |
commit | ac01105baf8ceb2c8c8a3711531840498c8a6fa9 (patch) | |
tree | 58e010a2cd69cf12d90748b7d9454c1ca6bf1c60 /src/irmd | |
parent | f99731a667b2ba5aa8ac7f1b331e03e7ad62e7c7 (diff) | |
parent | 82c6b3ed73b01321141488c634c9c1c4d515b04b (diff) | |
download | ouroboros-ac01105baf8ceb2c8c8a3711531840498c8a6fa9.tar.gz ouroboros-ac01105baf8ceb2c8c8a3711531840498c8a6fa9.zip |
Merged in dstaesse/ouroboros/be-unlink (pull request #216)
irmd, ipcp: Unlink file for UNIX sockets
Diffstat (limited to 'src/irmd')
-rw-r--r-- | src/irmd/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index 06cf0e07..df93c75a 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1595,6 +1595,9 @@ static void irm_destroy() close(irmd->sockfd); + if (unlink(IRM_SOCK_PATH)) + LOG_DBG("Failed to unlink %s.", IRM_SOCK_PATH); + pthread_rwlock_unlock(&irmd->state_lock); pthread_rwlock_destroy(&irmd->reg_lock); |