- Timestamp:
- Feb 14, 2024, 3:05:03 PM (3 months ago)
- Branches:
- (u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 956c8a3cd124c9c2699cd7c5eb20233d90e2f41a
- Parents:
- a95300a2a7eb5b30b4ea424081ee2110c95212de
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2024-02-14 15:05:03+01:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2024-02-14 15:06:06+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/links/ssiLink.cc
ra95300 r6f0a55 1028 1028 int err1=pipe(pc); 1029 1029 int err2=pipe(cp); 1030 1031 1030 if (err1 || err2) 1031 { 1032 1032 Werror("pipe failed with %d\n",errno); 1033 1033 return TRUE; 1034 1034 } 1035 1035 link_list n=(link_list)omAlloc(sizeof(link_struct)); 1036 1036 n->u=u; … … 1197 1197 } 1198 1198 // ========================================================================= 1199 else /* l->name=NULL*/1199 else /*now l->name!=NULL*/ 1200 1200 { 1201 1201 // tcp mode … … 1253 1253 char* ssh_command = (char*)omAlloc(256); 1254 1254 char* ser_host = (char*)omAlloc(64); 1255 gethostname(ser_host,64); 1255 if(strcmp(cli_host,"localhost")==0) 1256 strcpy(ser_host,"localhost"); 1257 else 1258 gethostname(ser_host,64); 1256 1259 if (strcmp(cli_host,"localhost")==0) /*avoid "ssh localhost" as key may change*/ 1257 1260 snprintf(ssh_command,256,"%s -q --batch --link=ssi --MPhost=%s --MPport=%d &",path,ser_host,portno); … … 1263 1266 if (TEST_OPT_PROT) { Print("running >>%s<<\n",ssh_command); } 1264 1267 int re=system(ssh_command); 1265 1266 1268 if (re<0) 1269 { 1267 1270 Werror("ERROR running `%s` (%d)",ssh_command,re); 1268 1271 l->data=NULL; … … 1270 1273 omFree(d); 1271 1274 return TRUE; 1272 1275 } 1273 1276 omFree(ssh_command); 1274 1277 omFree(ser_host);
Note: See TracChangeset
for help on using the changeset viewer.