No more malloc or lock inside signal handlers.

This commit is contained in:
rsc 2004-04-21 04:48:25 +00:00
parent ac0e2db600
commit 175b8a534a
6 changed files with 78 additions and 55 deletions

View file

@ -2,15 +2,12 @@ enum
{
NPRIV = 16,
RENDHASH = 33,
PIDHASH = 33,
};
typedef struct Uproc Uproc;
struct Uproc
{
Uproc *next;
int pid;
int pipe[2];
int state;
void *priv[NPRIV];
ulong rendval;
@ -19,5 +16,5 @@ struct Uproc
p9jmp_buf notejb;
};
extern Uproc *_p9uproc(void);
extern Uproc *_p9uproc(int);
extern void _p9uprocdie(void);