Changeset 6c70ef in git for Singular/extra.cc


Ignore:
Timestamp:
Nov 3, 2010, 5:56:28 PM (13 years ago)
Author:
Andreas Steenpaß <steenpas@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
5ea590e388164e5c1a86e89caca6ca5d46eb37e9
Parents:
8a4e22c96f254f73c703a940d895136b87451b5c
Message:
	new commands: waitall, waitfirst

git-svn-id: file:///usr/local/Singular/svn/trunk@13587 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r8a4e22 r6c70ef  
    629629        {
    630630          Werror( "expected valid file name as a string");
    631           return FALSE;
     631          return TRUE;
     632        }
     633      }
     634  /*==================== forking experiments ======================*/
     635      if(strcmp(sys_cmd, "waitforssilinks")==0)
     636      {
     637        if ((h != NULL) && (h->Typ() == LIST_CMD) &&
     638            (h->next != NULL) && (h->next->Typ() == INT_CMD))
     639        {
     640          lists L = (lists)h->Data();
     641          int timeMillisec = (int)(long)h->next->Data();
     642          int n = slStatusSsiL(L, timeMillisec * 1000);
     643          res->rtyp = INT_CMD;
     644          res->data = (void*)n;
     645          return FALSE;
     646        }
     647        else
     648        {
     649          Werror( "expected list of open ssi links and timeout");
     650          return TRUE;
    632651        }
    633652      }
Note: See TracChangeset for help on using the changeset viewer.