diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-08-20 08:58:59 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-08-20 08:58:59 +0000 |
commit | 45c77a507ed275830633849f368c4ed5b4831328 (patch) | |
tree | d8f3500079718a349b58342d6d162d3cc0ca7e98 /src/ipcpd/ipcp.c | |
parent | c7cb10810c447579cb20a8bc99049baeeb8e2065 (diff) | |
parent | 1fc486ada3bfc63e72703a494aa180b0a9c6587f (diff) | |
download | ouroboros-45c77a507ed275830633849f368c4ed5b4831328.tar.gz ouroboros-45c77a507ed275830633849f368c4ed5b4831328.zip |
Merged in dstaesse/ouroboros/testing-bugfix (pull request #558)
ipcpd, irmd: Fix data races
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r-- | src/ipcpd/ipcp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index 7066fb04..368c6eb8 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -58,8 +58,6 @@ void ipcp_sig_handler(int sig, if (ipcp_get_state() == IPCP_OPERATIONAL) ipcp_set_state(IPCP_SHUTDOWN); } - - tpm_stop(); default: return; } @@ -689,8 +687,9 @@ int ipcp_boot() void ipcp_shutdown() { - tpm_fini(); pthread_join(ipcpi.acceptor, NULL); + tpm_stop(); + tpm_fini(); log_info("IPCP %d shutting down.", getpid()); } |