diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-08-29 18:34:26 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-08-29 18:34:26 +0200 |
commit | 7d598d4a706e06e7e89218ca9ae071dd630cb2b3 (patch) | |
tree | a533c39bd42c9cbdb482ff210378b797c77b9e6e /src/irmd/main.c | |
parent | 706de5704f4d61929bbbb87d8d667ba68fcffc7d (diff) | |
download | ouroboros-7d598d4a706e06e7e89218ca9ae071dd630cb2b3.tar.gz ouroboros-7d598d4a706e06e7e89218ca9ae071dd630cb2b3.zip |
irmd: Fix deleting corrupt shm file
This will delete the rdrbuff also when it has been corrupted
before. Otherwise the irmd won't start, as experienced on my desktop.
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r-- | src/irmd/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index 1d62de85..c5caff6c 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -2204,7 +2204,7 @@ static int irm_init(void) if (kill(lockfile_owner(irmd.lf), 0) < 0) { log_info("IRMd didn't properly shut down last time."); - shm_rdrbuff_destroy(shm_rdrbuff_open()); + shm_rdrbuff_purge(); log_info("Stale resources cleaned."); lockfile_destroy(irmd.lf); irmd.lf = lockfile_create(); |