Signal handling and sem/file init