Yes I understand that. However my question was whether I can do it in signal handler routine since the way linux signal handler works. Some suggest setting of only flags in signal handlers and not to call any system calls in the routine. I feel some extent jsmith has answer but I am still not clear