problem in doing coding of signal handler

i m unble to execute code of
signal handler using
a) Wait b) Waitpid

what error do you see?

which operating system are you using?