The Perl 5 module Proc::WaitStat provides functions to intepret and act upon
wait status values.

Homepage:
https://metacpan.org/release/Proc-WaitStat
