> Is it safe to invoke memset and msgsnd inside a signal handler? (I'm > thinking of using them inside SIGALRM handler) You are not guaranteed this, but in practice it will be ok for those two.