summaryrefslogtreecommitdiff
path: root/regress-driver
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-16 06:13:24 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-16 06:13:24 -0500
commitd607c875a0999bd29c4db7c92182c8c193379d2a (patch)
treef0013a19aa4b213cd8cc229d21c74236b5d9575e /regress-driver
parente7e4ef68e8ee9e1f33493f0f57551dfadbbcde54 (diff)
downloadgpsd-d607c875a0999bd29c4db7c92182c8c193379d2a.tar.gz
Repair the logic for setting a non-default SHM export segment.
Also, ensure this always happens within the regression-test driver. All regression tests pass.
Diffstat (limited to 'regress-driver')
-rwxr-xr-xregress-driver5
1 files changed, 5 insertions, 0 deletions
diff --git a/regress-driver b/regress-driver
index 86ab10b4..f6f3c96a 100755
--- a/regress-driver
+++ b/regress-driver
@@ -38,6 +38,11 @@ if [ -d ${py_libdir} ] && [ -d ${py_scriptdir} ]; then
fi
export GPSD_HOME PATH
+# Use a non-default value of the SHM key to avoid colliding with
+# production instances. Value must be legal for strtol(3);
+# this is the default key plus one.
+export GPSD_SHM_KEY=0x47505345
+
mode=regress
testing=daemon
opts=""