How to run code before global constructors?

From: David Schwartz (davids_at_webmaster.com)
Date: 07/24/03


Date: Wed, 23 Jul 2003 23:46:29 -0700


    I have a program that needs to install a signal handler before any
global constructors are called. (The global constructors do things that may
cause signals to be received that need to be properly handled.)

    Is there any way to ensure a small chunk of code runs before any global
constructors run? Hackish, ugly, solutions are okay. Simple solutions are
preferred.

    DS



Relevant Pages

  • Re: How to run code before global constructors?
    ... > I have a program that needs to install a signal handler before any ... > global constructors are called. ... your signals could be cached until initialization is complete. ... a college course that is available for download at ...
    (comp.os.linux.development.apps)
  • Re: How to run code before global constructors?
    ... > I have a program that needs to install a signal handler before any ... > global constructors are called. ... > cause signals to be received that need to be properly handled.) ... are put into the module header files. ...
    (comp.os.linux.development.apps)
  • Re: How to run code before global constructors?
    ... > global constructors are called. ... > cause signals to be received that need to be properly handled.) ... constructors of all the object files. ... priority 101, it should be created before any other objects with default ...
    (comp.os.linux.development.apps)
  • Re: How to run code before global constructors?
    ... >global constructors are called. ... >cause signals to be received that need to be properly handled.) ... Hackish, ugly, solutions are okay. ... 24539 Neumuenster, Germany|F.W.A.K.(Rotten Apples), Love Career ...
    (comp.os.linux.development.apps)
  • Re: How to run code before global constructors?
    ... > global constructors are called. ... Perhaps these constructors need to ensure that signals are handled ... libc has not finished initializing itself yet, ... In order to understand recursion you must first understand recursion. ...
    (comp.os.linux.development.apps)