Le Mon, 05 Jan 2009 15:29:23 +0800,
Edward King 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
> mai
On Mon, 5 Jan 2009 15:12:12 + (UTC), Tom Marchand
wrote:
> trying putting newlines in the strings like this:
>
> "receive overflow\n"
You can add
fflush(stdout);
to force the output, even if no \n is appended. But as it has
been mentioned before, don't forget to
#inc
trying putting newlines in the strings like this:
"receive overflow\n"
- Original Message -
From: "Edward King"
To: freebsd-questions@freebsd.org
Sent: Monday, January 5, 2009 2:29:23 AM GMT -05:00 US/Canada Eastern
Subject: why printf() don't
On January 5, 2009 02:29:23 am Edward King wrote:
> 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 pr
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!!!