gpsd-dev
[Top][All Lists]
Advanced

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

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


From: Gary E. Miller
Subject: Re: [gpsd-dev] Does shared memory segment ever get destroyed ?
Date: Fri, 4 Nov 2011 15:51:40 -0700 (PDT)
User-agent: Alpine 1.00 (LNX 882 2007-12-20)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yo YuFen!

On Fri, 4 Nov 2011, Yufeng Shen wrote:

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

Correct, that is the ntpd protocol.  gpsd did not write that, we just
do what ntpd wants us to do.

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

Nope, the ntpd protocol has a nice handshake to prevent that.

RGDS
GARY
- ---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFOtGyABmnRqz71OvMRApeUAKC4f1R4hcRPll/APmPo1L3fe8+rMwCdHSA0
NRfp1ewPPTGMeG7ZckCRICE=
=rjc7
-----END PGP SIGNATURE-----




reply via email to

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