sigaction
Jorge Almeida
jjalmeida at gmail.com
Wed Mar 25 01:10:35 PDT 2009
On Wed, 25 Mar 2009, Roger Oberholtzer wrote:
> On Tue, 2009-03-24 at 20:20 +0000, Jorge Almeida wrote:
>> 13 void forwardsignal(int signum);
>> 14 struct sigaction frwdsigs;
>> 15 frwdsigs.sa_handler=forwardsignal;
>> 16 frwdsigs.sa_mask=0;
>> 17 frwdsigs.sa_flags=0;
>
> This code looks like code I use, without the error. Just for fun, try
> removing the -Os and -fomit-frame-pointer options. I do not use those,
> so maybe it is there.
>
> OOC, why are you specifying the -march=pentium4 option? I would try
> without that as well. Just to see if the compiler is happy.
The idea is to produce a very small binary. This is just for my own use,
so -march=pentium4 makes sense (and it means a few bytes less, I
checked)
I tried without any flags and still no joy. These are the flags I've
been using in similar programs with no problems. But this is the first
time I try to make use of sigaction...
>
> What gcc version are you using?
4.1.2 (at home I have an older version, don't remember which, and the
same error messages).
>
>
I was hoping that it was some syntax error...
Thanks.
--
Jorge Almeida
More information about the Linux-users
mailing list