PM: rework signal handling

- introduce PROC_STOPPED flag, which tracks whether the process is
  stopped on PROC_STOP in the kernel, rather than implicitly deriving
  this from PM_SIG_PENDING;
- make the process resumption test based on current state rather than
  state transitions;
- add and clarify several flag checks in the signal handling code;
- add test79 to test signal handling robustness.

Change-Id: Ic8c7527095035b300b56f2ab1b9dd190bd4bf001
This commit is contained in:
David van Moolenbroek
2013-10-27 13:47:45 +01:00
committed by Lionel Sambuc
parent 4d4e70daaa
commit 595d73a896
12 changed files with 715 additions and 114 deletions

View File

@@ -57,7 +57,7 @@ MINIX_TESTS= \
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
41 42 43 44 45 46 48 49 50 52 53 54 55 56 58 59 60 \
61 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
61 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
.if ${MACHINE_ARCH} == "i386"
MINIX_TESTS+= \