8.18

    1. c
    2. +-------+---------+
    3. | "0" exit "2"
    4. |
    5. c | p
    6. +-------+-------+---------+
    7. | fork "1" exit "2"
    8. | (atexit)
    9. | c
    10. | +-------+---------+
    11. | | "0" exit
    12. | |
    13. | p | p
    14. +------+-------+-------+---------+
    15. main fork fork "1" exit

    2 must be behind 0/1

    B & D is impossible.