No more malloc or lock inside signal handlers.
This commit is contained in:
parent
ac0e2db600
commit
175b8a534a
6 changed files with 78 additions and 55 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue