summaryrefslogtreecommitdiff
path: root/tools/hi-test.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-15 11:41:00 (GMT)
committerJohn Denker <jsd@av8n.com>2012-07-15 11:41:00 (GMT)
commit5b14bc41824ae70d33f1e7cd1486aec32b46b3e1 (patch)
tree3ae1117ee818dea48e302b3c0b5116d565a7691a /tools/hi-test.c
parent536e04ff8c9452ac799c7c53c0414bd3b75f3b56 (diff)
pass group-ID in environment
Diffstat (limited to 'tools/hi-test.c')
-rw-r--r--tools/hi-test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/hi-test.c b/tools/hi-test.c
index 3086535..d74b3c9 100644
--- a/tools/hi-test.c
+++ b/tools/hi-test.c
@@ -1,7 +1,11 @@
#include <iostream>
+#include <stdlib.h>
using namespace std;
int main(){
- cerr << "++++ hi-test pid: " << getpid() << " group: " << getpgid(0) << endl;
+ cerr << "++++ hi-test pid: " << getpid() << " group: " << getpgid(0);
+ char* foo = getenv("HI_Q_GROUP");
+ if (foo) cerr << " HI_Q_GROUP: " << foo;
+ cerr << endl;
}