Christian Biere wrote:
> Daichi Kawahata wrote:
> > -   signal(2, foo);
> > -   kill(getpid(), 2);
> > +   sigaction(2, foo);
> >     kill(getpid(), 2);
> >     printf("abc\n");
 
> I'd be surprised if that compiles at all.

Well, I see it does indeed compile due to the weak kind of checks. Since
signal.h isn't included the compiler won't complain. The program will
(most likely) crash when it's run, though.

-- 
Christian

Attachment: pgpDBbOsovdvE.pgp
Description: PGP signature

Reply via email to