Changeset b8ad3a in git for Singular/links/ssiLink.cc


Ignore:
Timestamp:
Jan 4, 2024, 4:39:13 PM (4 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '98550b669234b32be762076c32b3be2c35188ac4')
Children:
4b0877fd8b06e461f8c2450538a142d631260806
Parents:
dff47b7996ab7bb15ce9bd372c7fc531a02308f7
Message:
compiler warnings, format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ssiLink.cc

    rdff47b rb8ad3a  
    10241024      if (strcmp(mode,"fork")==0)
    10251025      {
     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        }
    10261035        link_list n=(link_list)omAlloc(sizeof(link_struct));
    10271036        n->u=u;
     
    10301039        ssiToBeClosed=n;
    10311040
    1032         int pc[2];
    1033         int cp[2];
    1034         pipe(pc);
    1035         pipe(cp);
    10361041        pid_t pid = fork();
    10371042        if (pid == -1 && errno == EAGAIN)   // RLIMIT_NPROC too low?
     
    12571262        omFree(cli_host);
    12581263        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        }
    12601273        omFree(ssh_command);
    12611274        omFree(ser_host);
Note: See TracChangeset for help on using the changeset viewer.