bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cleanup_register() uses its argument in contradictory ways


From: Larry Jones
Subject: Re: cleanup_register() uses its argument in contradictory ways
Date: Fri, 10 Oct 2003 14:35:57 -0400 (EDT)

Terrence Enger writes:
> 
> I notice that cleanup_register() in src/exithandle.c calls
> both signals_register() and atexit() with its argument.  But
> signals_register() takes in effect void(*)(void), while
> atexit() takes void(*)(void).

Those are both the same.  You meant to say that atexit() takes:

        void (*)(void)

wherease signals_register takes:

        RETSIGTYPE (*)(int)

Those are not compatible.

> I wonder how you can use one function in both calls.

You can't.  At least not portably.

I think Derek has some rethinking to do.

-Larry Jones

Archaeologists have the most mind-numbing job on the planet. -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]