-/* $OpenBSD: kern_sig.c,v 1.332 2024/07/10 12:28:46 claudio Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.333 2024/07/22 09:43:47 claudio Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
p->p_stat = SSTOP;
atomic_clearbits_int(&pr->ps_flags, PS_WAITED);
- atomic_setbits_int(&pr->ps_flags, PS_STOPPED);
+ atomic_setbits_int(&pr->ps_flags, PS_STOPPING);
atomic_setbits_int(&p->p_flag, P_SUSPSIG);
/*
* We need this soft interrupt to be handled fast.
struct process *pr;
LIST_FOREACH(pr, &allprocess, ps_list) {
- if ((pr->ps_flags & PS_STOPPED) == 0)
+ if ((pr->ps_flags & PS_STOPPING) == 0)
continue;
- atomic_clearbits_int(&pr->ps_flags, PS_STOPPED);
+ atomic_clearbits_int(&pr->ps_flags, PS_STOPPING);
if ((pr->ps_pptr->ps_sigacts->ps_sigflags & SAS_NOCLDSTOP) == 0)
prsignal(pr->ps_pptr, SIGCHLD);
-/* $OpenBSD: proc.h,v 1.364 2024/07/17 09:54:14 claudio Exp $ */
+/* $OpenBSD: proc.h,v 1.365 2024/07/22 09:43:47 claudio Exp $ */
/* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */
/*-
#define PS_SINGLEEXIT 0x00001000 /* Other threads must die. */
#define PS_SINGLEUNWIND 0x00002000 /* Other threads must unwind. */
#define PS_NOZOMBIE 0x00004000 /* No signal or zombie at exit. */
-#define PS_STOPPED 0x00008000 /* Just stopped, need sig to parent. */
+#define PS_STOPPING 0x00008000 /* Just stopped, need sig to parent. */
#define PS_SYSTEM 0x00010000 /* No sigs, stats or swapping. */
#define PS_EMBRYO 0x00020000 /* New process, not yet fledged */
#define PS_ZOMBIE 0x00040000 /* Dead and ready to be waited for */