Le Mon, 05 Jan 2009 15:29:23 +0800,
Edward King <zhan...@neusoft.com> a écrit :

> I use FreeBSD7.0,and use signal,like follows:
> signal(SIGHUP,sig_hup);
> signal(SIGIO,sig_io);
> when I run call following code,it can run,but I find a puzzled
> question,it should print some information,such as printf("execute
> main()") will print execute main(),but in fact,printf fuction print
> none!!! Why printf function do not go work?

Just to be sure :
You should not use printf() in a signal handler, it is not
considered 'signal safe'.
(See man sigaction)

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to