From 6c8bd0642fe91ee8dbb18b51b159106e167a0d6f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 15 Oct 2002 21:55:48 +0000 Subject: [PATCH] must define BOINC_SHMEM_KEY svn path=/trunk/boinc/; revision=500 --- doc/test.html | 2 ++ test/test.inc | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/test.html b/doc/test.html index 4ef47a1485..c0d1873a84 100644 --- a/doc/test.html +++ b/doc/test.html @@ -160,6 +160,8 @@ setenv BOINC_KEY_DIR /home/david/boinc_keys # path of some pre-generated security keys setenv BOINC_PLATFORM i686-pc-linux-gnu # platform name of this machine +setenv BOINC_SHMEM_KEY 0x3abc1234 +# shared-memory key; must be less than 2^31

1.5) Example script

diff --git a/test/test.inc b/test/test.inc index 6d7182a9a2..af9e8f6a4d 100644 --- a/test/test.inc +++ b/test/test.inc @@ -113,8 +113,7 @@ class Project { $this->plat_names = array(); $this->db_passwd = ""; $this->generate_keys = false; - $this->shmem_key = "0xbeefacafe"; - //$this->shmem_key = "0x" . rand(0,6) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9); + $this->shmem_key = get_env_var("BOINC_SHMEM_KEY"); $this->resource_share = 1; }