Changeset e665360 in git for Singular/LIB/standard.lib


Ignore:
Timestamp:
May 25, 1998, 11:28:33 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
eb816eae221c6afa793536b78f3f6090b3fcca67
Parents:
237da4a965b4c32761c7294fe88cc2b9bba88453
Message:
* minor bug fixes


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/standard.lib

    r237da4 re665360  
    1 // $Id: standard.lib,v 1.15 1998-05-25 08:44:14 obachman Exp $
     1// $Id: standard.lib,v 1.16 1998-05-25 21:28:33 obachman Exp $
    22//////////////////////////////////////////////////////////////////////////////
    33
    4 version="$Id: standard.lib,v 1.15 1998-05-25 08:44:14 obachman Exp $";
     4version="$Id: standard.lib,v 1.16 1998-05-25 21:28:33 obachman Exp $";
    55info="
    66LIBRARY: standard.lib   PROCEDURES WHICH ARE ALWAYS LOADED AT START-UP
     
    151151      if (typeof(#[1]) == "int")
    152152      {
    153         int wait = #[1] * 1000000;
    154         int j,k = 10, 0;
     153        int wait = #[1];
     154        int j = 10;
     155       
    155156        string bs = nameof(basering);
    156157        link l_fork = "MPtcp:fork";
     
    160161        write(l_fork, quote(groebner(eval(i))));
    161162       
    162         while(k < wait)
     163        // sleep in small intervalls for appr. one second
     164        if (wait > 0)
    163165        {
    164           if (status(l_fork, "read", "ready", j)) {break;}
    165           k = k + j;
    166           j = j + j;
     166          while(j < 1000000)
     167          {
     168            if (status(l_fork, "read", "ready", j)) {break;}
     169            j = j + j;
     170          }
    167171        }
    168 
     172       
     173        // sleep in intervalls of one second from now on
     174        j = 1;
     175        while (j < wait)
     176        {
     177          if (status(l_fork, "read", "ready", 1000000)) {break;}
     178          j = j + 1;
     179        }
     180       
    169181        if (status(l_fork, "read", "ready"))
    170182        {
Note: See TracChangeset for help on using the changeset viewer.