diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-09 22:51:18 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-09 22:51:18 -0500 |
commit | facc08793683c63cc658d0ae549f3561411f0a08 (patch) | |
tree | f22ff00cf1dd2f7df28c325b40b0f0783ecee463 /gpsctl.c | |
parent | 5b4af8cc002773058ad744f9c2f9975284b09224 (diff) | |
download | gpsd-facc08793683c63cc658d0ae549f3561411f0a08.tar.gz |
Implement and document GPSD_SHM_KEY environment variable.
Diffstat (limited to 'gpsctl.c')
-rw-r--r-- | gpsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -296,7 +296,7 @@ int main(int argc, char **argv) case 'R': /* remove the SHM export segment */ #ifdef SHM_EXPORT_ENABLE /*@-nullpass@*/ - status = shmget(GPSD_KEY, 0, 0); + status = shmget(getenv("GPSD_SHM_KEY") ? atoi(getenv("GPSD_SHM_KEY")) : GPSD_KEY, 0, 0); if (status == -1) { gpsd_report(&context.errout, LOG_WARN, "GPSD SHM segment does not exist.\n"); |