Changeset b8ad3a in git for Singular/links/ssiLink.cc
- Timestamp:
- Jan 4, 2024, 4:39:13 PM (4 months ago)
- Branches:
- (u'spielwiese', '98550b669234b32be762076c32b3be2c35188ac4')
- Children:
- 4b0877fd8b06e461f8c2450538a142d631260806
- Parents:
- dff47b7996ab7bb15ce9bd372c7fc531a02308f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/links/ssiLink.cc
rdff47b rb8ad3a 1024 1024 if (strcmp(mode,"fork")==0) 1025 1025 { 1026 int pc[2]; 1027 int cp[2]; 1028 int err1=pipe(pc); 1029 int err2=pipe(cp); 1030 if (err1 || err2) 1031 { 1032 Werror("pipe failed with %d\n",errno); 1033 return TRUE; 1034 } 1026 1035 link_list n=(link_list)omAlloc(sizeof(link_struct)); 1027 1036 n->u=u; … … 1030 1039 ssiToBeClosed=n; 1031 1040 1032 int pc[2];1033 int cp[2];1034 pipe(pc);1035 pipe(cp);1036 1041 pid_t pid = fork(); 1037 1042 if (pid == -1 && errno == EAGAIN) // RLIMIT_NPROC too low? … … 1257 1262 omFree(cli_host); 1258 1263 if (TEST_OPT_PROT) { Print("running >>%s<<\n",ssh_command); } 1259 system(ssh_command); 1264 int re=system(ssh_command); 1265 if (re<0) 1266 { 1267 Werror("ERROR running `%s` (%d)",ssh_command,re); 1268 l->data=NULL; 1269 l->flags=0; 1270 omFree(d); 1271 return TRUE; 1272 } 1260 1273 omFree(ssh_command); 1261 1274 omFree(ser_host);
Note: See TracChangeset
for help on using the changeset viewer.