This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: More protection against SIGCHLD brokenness



> >>>>> "Bruce" == Bruce Korb <bkorb@allegronetworks.com> writes:
> 
>     Bruce> http://gcc.gnu.org/ml/gcc-patches/2001-03/msg00582.html
> 
> Can we factor this code into a routine in libiberty?
> 
> If so, please do that.  If not, the patch is fine.

We *can*, but only if this is acceptable (ick):

=== libiberty.h

   #define main(c,a) wrapped_main(c,a)

=== libiberty/main.c

   #undef main
   extern int wrapped_main PROTO((int,char**));

   int main( c, v ) int c; char** v;
   {
       signal( SIGCHLD, SIG_DFL );
       return wrapped_main(c,v);
   }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]