how to register default signal handler

Submitted by asad
on February 28, 2006 - 8:25pm

Hi,

I am trying to write a module that will suspend a process to disk. for this I wanted to use the SIGUSR1. So when the process needs to be suspeneded this signal will be send to the process which will do nothing and thus the default signal handler will be called. There I willl suspend the process to the disk. I wonder how to register this default signal handler.