This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: More protection against SIGCHLD brokenness
- To: 'Mark Mitchell' <mark at codesourcery dot com>, Bruce Korb <bkorb at allegronetworks dot com>
- Subject: RE: More protection against SIGCHLD brokenness
- From: Bruce Korb <bkorb at allegronetworks dot com>
- Date: Thu, 15 Mar 2001 12:40:22 -0800
- Cc: "GCC Patches (E-mail)" <gcc-patches at gcc dot gnu dot org>
> >>>>> "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);
}