summaryrefslogtreecommitdiff
path: root/shmexport.c
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2017-03-24 17:45:18 -0700
committerFred Wright <fw@fwright.net>2017-03-24 18:25:00 -0700
commit1f209455dd2e850b164a3f7985ad845e88efef57 (patch)
treeb21312d77041359dd4c4a06cf4b3848f9f96e6ff /shmexport.c
parent4ee196cd9c34f7a268118d4088392e392546fe42 (diff)
downloadgpsd-1f209455dd2e850b164a3f7985ad845e88efef57.tar.gz
Makes 'GPSD' SHM IDs unique during regression tests.
Prior to this change, multiple gpsd instances would normally share a single SHM segment, confusing anyone using it. This was a problem either when running parallel regression tests, or even when running a single test with a system gpsd also running. Now, each gpsd instance launched by fake.py gets a SHM ID of the form 0x4770xxxx, where xxxx is the TCP or UDP port number. The high-order part is 0x4770 ('Gp') instead of 0x4750 ('GP') to ensure that it doesn't collide with the standard 'GPSD'. This does not do anything about 'NTPx' SHM segments. TESTED: Ran "scons -j24 check", and observed many 'Gpxx' SHM segments with ipcs, all disappearing by the end of testing.
Diffstat (limited to 'shmexport.c')
0 files changed, 0 insertions, 0 deletions