re: comm, I don't think it's common (ah ah) enough, so either you test for its existence at the start of the hook, either you find a posix way to do the same thing.