sighandler() estrdup() various improvements
sighandler() estrdup() various improvements