diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-08-29 16:50:26 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-08-29 16:50:26 +0000 |
commit | 8fe0340d2117cf9b5c724ff10621978ef2bee5f1 (patch) | |
tree | 8158e5feb1e59546ba1f972286f84ba7532c6615 /src/lib/shm_rdrbuff.c | |
parent | f3593b8a26c05392b09c16472b55f8662db22335 (diff) | |
parent | e533ca60b841193fbdb7d135de3d9e56916445c2 (diff) | |
download | ouroboros-8fe0340d2117cf9b5c724ff10621978ef2bee5f1.tar.gz ouroboros-8fe0340d2117cf9b5c724ff10621978ef2bee5f1.zip |
Merged in sandervrijders/ouroboros/be-corrupt (pull request #581)
Be corrupt
Diffstat (limited to 'src/lib/shm_rdrbuff.c')
-rw-r--r-- | src/lib/shm_rdrbuff.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/shm_rdrbuff.c b/src/lib/shm_rdrbuff.c index d8893677..a3333a35 100644 --- a/src/lib/shm_rdrbuff.c +++ b/src/lib/shm_rdrbuff.c @@ -323,6 +323,18 @@ void shm_rdrbuff_close(struct shm_rdrbuff * rdrb) free(rdrb); } +void shm_rdrbuff_purge(void) +{ + char * shm_rdrb_fn; + + shm_rdrb_fn = rdrb_filename(); + if (shm_rdrb_fn == NULL) + return; + + shm_unlink(shm_rdrb_fn); + free(shm_rdrb_fn); +} + void shm_rdrbuff_destroy(struct shm_rdrbuff * rdrb) { char * shm_rdrb_fn; |