parent
47b5291b9c
commit
213495299b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_proc.c,v 1.71 2004/02/06 06:59:33 pk Exp $ */
|
||||
/* $NetBSD: kern_proc.c,v 1.72 2004/02/26 11:20:08 junyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -69,7 +69,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.71 2004/02/06 06:59:33 pk Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.72 2004/02/26 11:20:08 junyoung Exp $");
|
||||
|
||||
#include "opt_kstack.h"
|
||||
|
||||
|
@ -94,8 +94,6 @@ __KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.71 2004/02/06 06:59:33 pk Exp $");
|
|||
#include <sys/sa.h>
|
||||
#include <sys/savar.h>
|
||||
|
||||
static void pg_delete(pid_t);
|
||||
|
||||
/*
|
||||
* Structure associated with user cacheing.
|
||||
*/
|
||||
|
@ -150,7 +148,7 @@ struct pid_table {
|
|||
struct pgrp *pt_pgrp;
|
||||
};
|
||||
#if 1 /* strongly typed cast - should be a noop */
|
||||
static __inline uint p2u(struct proc *p) { return (uint)(uintptr_t)p; };
|
||||
static __inline uint p2u(struct proc *p) { return (uint)(uintptr_t)p; }
|
||||
#else
|
||||
#define p2u(p) ((uint)p)
|
||||
#endif
|
||||
|
@ -198,9 +196,10 @@ const struct proclist_desc proclists[] = {
|
|||
{ NULL },
|
||||
};
|
||||
|
||||
static void orphanpg __P((struct pgrp *));
|
||||
static void orphanpg(struct pgrp *);
|
||||
static void pg_delete(pid_t);
|
||||
#ifdef DEBUG
|
||||
void pgrpdump __P((void));
|
||||
void pgrpdump(void);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -651,12 +650,12 @@ proc_free_mem(struct proc *p)
|
|||
* Move p to a new or existing process group (and session)
|
||||
*
|
||||
* If we are creating a new pgrp, the pgid should equal
|
||||
* the calling processes pid.
|
||||
* the calling process' pid.
|
||||
* If is only valid to enter a process group that is in the session
|
||||
* of the process.
|
||||
* Also mksess should only be set if we are creating a process group
|
||||
*
|
||||
* Only called from sys_setsid, sys_setpgid/sys_setprp and the
|
||||
* Only called from sys_setsid, sys_setpgid/sys_setpgrp and the
|
||||
* SYSV setpgrp support for hpux == enterpgrp(curproc, curproc->p_pid)
|
||||
*/
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue