Subject: proc flags cleanup
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 09/16/1998 05:51:47
The current state of flags in the proc structure is the following:
#define P_EXEC 0x04000 /* Process called exec. */
#define P_FSTRACE 0x10000 /* Don't send SIGCHLD to parent on stop. */
/* Should be moved to machine-dependent areas. */
#define P_OWEUPC 0x08000 /* Owe process an addupc() call at next ast. */
#define P_SSTEP 0x20000 /* Process needs single-step fixup. */
I would like to add P_NOCLDWAIT and SA_NOCLDWAIT which will avoid creating
zombies... As I was looking at the flags though, I noticed the following:
- P_SSTEP in not used anywhere
- P_OWEUPC is used by most ports, so I don't think that it is worth while to
move it to mdproc.
- P_FSTRACE description is not very good.
I would like to make the following changes:
#define P_EXEC 0x04000 /* Process called exec. */
#define P_OWEUPC 0x08000 /* Owe process an addupc() call at next ast. */
#define P_FSTRACE 0x10000 /* Debugged process being traced by procfs */
#define P_NOCLDWAIT 0x20000 /* Exiting children do not produce zombies */
Ok?
christos