CHILD_MAX isn’t defined in klibc either, copy dietlibc’s definition

thanks fefe (btw, funny tempnam link time warning… never used colours…)

pending Debian #516294, #516773, #516774, mksh might work with klcc now
This commit is contained in:
tg 2009-02-23 16:17:44 +00:00
parent bbaa186ec6
commit 1552bf1576

6
jobs.c
View File

@ -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 */