panic("Going nowhere without my init!");
}
+ varsymset_clean(&p->p_varsymset);
+ lockuninit(&p->p_varsymset.vx_lock);
/*
* Kill all lwps associated with the current process, return an
* error if we race another thread trying to do the same thing
int error, status;
error = kern_wait(uap->pid, uap->status ? &status : NULL,
- uap->options, uap->rusage ? &rusage : NULL, &uap->sysmsg_fds[0]);
+ uap->options, uap->rusage ? &rusage : NULL, &uap->sysmsg_result);
if (error == 0 && uap->status)
error = copyout(&status, uap->status, sizeof(*uap->status));
#include <sys/queue.h> /* TAILQ_* macros */
#endif
+#include <sys/lock.h>
+
struct varsym {
int vs_refs; /* a lot of sharing occurs */
int vs_namelen;
struct varsymset {
TAILQ_HEAD(, varsyment) vx_queue;
int vx_setsize;
+ struct lock vx_lock;
};
#endif /* _KERNEL || _KERNEL_STRUCTURES */
#define MAXVARSYM_NAME 64
#define MAXVARSYM_DATA 256
- #define MAXVARSYM_SET 8192
+ #define MAXVARSYM_SET 16384
#ifdef _KERNEL