- various bug fixes and improvements
- modified automatic instrument detection on six and tecs client
This commit is contained in:
17
tecs/six.c
17
tecs/six.c
@@ -674,9 +674,20 @@ int main (int argc, char *argv[]) {
|
||||
, host, sizeof host, &port);
|
||||
ent = gethostbyname(host);
|
||||
if (!ent) {
|
||||
PutC("unknown host: ");
|
||||
PutC(host);
|
||||
PutC("\n");
|
||||
if (hostArg == NULL || hostArg[0] <= ' ') {
|
||||
snprintf(host, sizeof host, "%s", getenv("HOST"));
|
||||
hostArg = host;
|
||||
}
|
||||
PutC(service);
|
||||
PutC(" on ");
|
||||
PutC(hostArg);
|
||||
PutC(" not found in InstrumentHostList\n");
|
||||
p=getenv("InstrumentHostList");
|
||||
if (p) {
|
||||
PutC("(");
|
||||
PutC(p);
|
||||
PutC(")\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
snprintf(host, sizeof host, "%s", ent->h_name);
|
||||
|
||||
Reference in New Issue
Block a user