Changeset 3706b2 in git


Ignore:
Timestamp:
May 18, 2012, 1:42:21 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
e5324ae0d87043f3dd2f19e754586d0028d614cc
Parents:
d0015c9c5906ccd1040927a2140a137a93d743b1
Message:
add:  add: slStatusSsiL also for ssi:connect, better handling of close
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/misc_ip.cc

    rd0015c r3706b2  
    77 *
    88 * For more general information, see the documentation in misc_ip.h.
    9  *
    10  * @internal @version \$Id$
    119 *
    1210 **/
     
    262260              p_ui +=add;
    263261              //add += 2; if (add == 6) add = 2;
    264               add =2+2*(add==2);
     262              add =2+2*(add==2);
    265263            }
    266264            mpz_set_ui(nn,nn_ui);
     
    679677    v=v->next;
    680678  } while (v!=NULL);
    681    
     679
    682680#ifdef OM_SINGULAR_CONFIG_H
    683681   // set global variable to show memory usage
     
    686684  else om_sing_opt_show_mem = 0;
    687685#endif
    688    
     686
    689687  return FALSE;
    690688}
     
    10321030    }
    10331031  }
    1034   if (i<=0)
    1035   {
     1032  if(!singular_in_batchmode)
     1033  {
     1034    if (i<=0)
     1035    {
    10361036      if (TEST_V_QUIET)
    10371037      {
     
    10411041          printf("\n$Bye.\n");
    10421042      }
    1043     //#ifdef sun
    1044     //  #ifndef __svr4__
    1045     //    _cleanup();
    1046     //    _exit(0);
    1047     //  #endif
    1048     //#endif
    1049     exit(0);
    1050   }
    1051   else
    1052   {
    1053       if(!singular_in_batchmode)
    1054       {
     1043      //#ifdef sun
     1044      //  #ifndef __svr4__
     1045      //    _cleanup();
     1046      //    _exit(0);
     1047      //  #endif
     1048      //#endif
     1049      i=0;
     1050    }
     1051    else
     1052    {
    10551053        printf("\nhalt %d\n",i);
    1056       }
     1054    }
    10571055  }
    10581056  #ifdef HAVE_MPSR
     
    11141112  memset(&sLastPrinted,0,sizeof(sleftv));
    11151113  sLastPrinted.rtyp=NONE;
    1116  
     1114
    11171115  extern int iiInitArithmetic(); iiInitArithmetic(); // iparith.cc
    11181116
     
    11271125
    11281126  coeffs_BIGINT = nInitChar(n_Q,NULL);
    1129  
    1130 #if 1 
     1127
     1128#if 1
    11311129   // def HAVE_POLYEXTENSIONS
    11321130  if(TRUE)
     
    11341132    n_coeffType type = nRegister(n_algExt, naInitChar);
    11351133    assume(type == n_algExt);
    1136      
     1134
    11371135    type = nRegister(n_transExt, ntInitChar);
    11381136    assume(type == n_transExt);
  • Singular/ssiLink.cc

    rd0015c r3706b2  
    784784          //myynest=0;
    785785          fe_fgets_stdin=fe_fgets_dummy;
    786           WerrorS_callback=WerrorS_batch;
     786          WerrorS_callback=WerrorS_batch;
    787787          if ((u!=NULL)&&(u->rtyp==IDHDL))
    788788          {
     
    12071207                return ssiRead1(l);
    12081208             }
    1209     case 99: ssiClose(l); exit(0);
     1209    case 99: ssiClose(l); m2_end(0);
    12101210    case 0: if (feof(d->f_read))
    12111211            {
     
    14021402{
    14031403// input: L: a list with links of type
    1404 //           ssi-fork, ssi-tcp, MPtcp-fork or MPtcp-launch.
     1404//           ssi-connect, ssi-fork, ssi-tcp, MPtcp-fork or MPtcp-launch.
    14051405//           Note: Not every entry in L must be set.
    14061406//        timeout: timeout for select in micro-seconds
     
    14791479      if (((strcmp(l->m->type,"ssi")!=0) && (strcmp(l->m->type,"MPtcp")!=0))
    14801480      || ((strcmp(l->mode,"fork")!=0) && (strcmp(l->mode,"tcp")!=0)
    1481         && (strcmp(l->mode,"launch")!=0)))
    1482       {
    1483         WerrorS("all links must be of type ssi:fork, ssi:tcp, MPtcp:fork\n");
    1484         WerrorS("or MPtcp:launch");
     1481        && (strcmp(l->mode,"launch")!=0) && (strcmp(l->mode,"connect")!=0)))
     1482      {
     1483        WerrorS("all links must be of type ssi:fork, ssi:tcp, ssi:connect,");
     1484        WerrorS(" MPtcp:fork or MPtcp:launch");
    14851485        return -2;
    14861486      }
Note: See TracChangeset for help on using the changeset viewer.