chg:  ext_ref in ring struct: set to NULL for modified ring
chg: simplify signal handlers, use sigaction