diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2020-03-18 21:53:21 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2020-03-20 12:10:44 +0100 |
commit | 5a4bd2f65b38a891237b3d73255eff3493082788 (patch) | |
tree | 907c1dce708527f37010b1154fd43ea19eed0acd /src/lib | |
parent | f5b97219d7e44569612a17e7b257f97b8f723d72 (diff) | |
download | ouroboros-5a4bd2f65b38a891237b3d73255eff3493082788.tar.gz ouroboros-5a4bd2f65b38a891237b3d73255eff3493082788.zip |
irmd: Fix cleanup of shm_flow_set0.17.1
The shm_flowset destroy was using the irmd pid, resulting in wrong
unlinks. The irmd was not cleaning up the process table, resulting in
shm leaks if there were still running processes on exit.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/shm_flow_set.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/shm_flow_set.c b/src/lib/shm_flow_set.c index c19adaff..0f701b63 100644 --- a/src/lib/shm_flow_set.c +++ b/src/lib/shm_flow_set.c @@ -148,7 +148,7 @@ struct shm_flow_set * shm_flow_set_create(pid_t pid) if (set == NULL) goto fail_set; - set->pid = getpid(); + set->pid = pid; if (pthread_mutexattr_init(&mattr)) goto fail_mutexattr_init; |