diff --git a/jobs.c b/jobs.c index dbc74c3..15c8b9e 100644 --- a/jobs.c +++ b/jobs.c @@ -2,7 +2,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.43 2008/12/29 20:47:15 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.44 2009/02/23 16:17:44 tg Exp $"); /* Order important! */ #define PRUNNING 0 @@ -92,7 +92,11 @@ static int nzombie; /* # of zombies owned by this process */ static int32_t njobs; /* # of jobs started */ #ifndef CHILD_MAX +#ifdef _POSIX_CHILD_MAX #define CHILD_MAX _POSIX_CHILD_MAX +#elif defined(__KLIBC__) +#define CHILD_MAX 999 /* no limit :-) */ +#endif #endif /* held_sigchld is set if sigchld occurs before a job is completely started */