1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

shmem: issue a warning if the remote side of the interface was closed

This commit is contained in:
Steffen Vogel 2018-05-07 18:03:31 +02:00
parent 6aeef09196
commit c99c95a558

View file

@ -122,6 +122,7 @@ int shmem_read(struct node *n, struct sample *smps[], unsigned cnt)
/* This can only really mean that the other process has exited, so close
* the interface to make sure the shared memory object is unlinked */
shmem_int_close(&shm->intf);
warn("Shared memory segment has been closed for node: %s", node_name(n));
return recv;
}