gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] Does shared memory segment ever get destroyed ?


From: Yufeng Shen
Subject: [gpsd-dev] Does shared memory segment ever get destroyed ?
Date: Fri, 4 Nov 2011 15:51:22 -0400

Looks like shm_release() only detach from the shared memory segment.

It would be better to have a function shm_destory() that does

shmctl(shmid, IPC_RMID, NULL);

to destroy the shared memory segment and let gpsd to call it when
gpsd is terminated.

Otherwise when the gpsd is killed, the client can still attach to the
leftover shared memory segment and read old data from it.


--- Yufeng Shen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]