diff options
author | John Denker <jsd@av8n.com> | 2012-07-15 04:41:00 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-15 04:41:00 -0700 |
commit | 5b14bc41824ae70d33f1e7cd1486aec32b46b3e1 (patch) | |
tree | 3ae1117ee818dea48e302b3c0b5116d565a7691a /tools/hi-test.c | |
parent | 536e04ff8c9452ac799c7c53c0414bd3b75f3b56 (diff) |
pass group-ID in environment
Diffstat (limited to 'tools/hi-test.c')
-rw-r--r-- | tools/hi-test.c | 6 |
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; } |