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


Ignore:
Timestamp:
Nov 8, 2013, 5:40:43 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
70b3ae0102981cd252f90101eaae430e561b8335
Parents:
1b67251e4a873733c02ccc815041eedc24741797bf60110df1fa419b30f99931324a3f93e540bb71
Message:
Merge pull request #419 from steenpass/rlimit_sw

raise RLIMIT_NPROC if necessary for fork()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ssiLink.cc

    r1b6725 rabb12f  
    3838#include <libpolys/misc/options.h>
    3939#include <kernel/timer.h>
     40#include <Singular/rlimit.h>
    4041#include <Singular/subexpr.h>
    4142#include <Singular/links/silink.h>
     
    779780        pipe(pc);
    780781        pipe(cp);
    781         pid_t pid=fork();
     782        pid_t pid = fork();
     783        if (pid == -1 && errno == EAGAIN)   // RLIMIT_NPROC too low?
     784        {
     785          raise_rlimit_nproc();
     786          pid = fork();
     787        }
     788        if (pid == -1)
     789        {
     790          WerrorS("could not fork");
     791        }
    782792        if (pid==0) /*fork: child*/
    783793        {
Note: See TracChangeset for help on using the changeset viewer.