added safe-fd concept and --alarm-fd