Re: Why I could not catch the signals on HP_UX?

Ulrich.Teichert_at_gmx.de
Date: 06/28/05

  • Next message: Sandy: "Re: Why I could not catch the signals on HP_UX?"
    Date: Tue, 28 Jun 2005 18:35:30 GMT
    
    

    Hi,

    [del]
    >The callback is on anther thread, but I tried to do a raise(SIGSEGV) in
    >the server's call back function just to test if the server can catch
    >the signal. I found it get and the notExitSigHandler() is called. But
    >in real case, which mean when I call the callback using the client's
    >invalid object, the server is terminated without catching any signal
    >first.
    [del]

    Depending on the TCP/IP implementation on HPUX, you might get a SIGPIPE
    from a broken TCP connection. Try adding this to your signal handler,
    but it depends highly upon the underlying ORB which does the network
    handling if this will get you further.

    Catching signals like SIGSEGV or SIGBUS is of limited value, unless you
    can be sure that your thread is either destroyed/cancelled without repeating
    the faulty access *and* the variable/member in question is released or
    overwritten. But I am repeating myself....

    HTH,
    Uli

    -- 
    Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de
    Stormweg 24               |listening to: Suicide Drive (The Deep Eynde)
    24539 Neumuenster, Germany|Public Pervert (Interpol) Cauchemar (Opération S)
    

  • Next message: Sandy: "Re: Why I could not catch the signals on HP_UX?"

    Relevant Pages

    • Re: Why I could not catch the signals on HP_UX?
      ... The two privates threads are spawned internaly, Private thread ... >registered with the server. ... HPUX is strictly POSIX compilant when it comes to signals and threads, ... >callback, the object that the server uses to make callback is invalid. ...
      (comp.sys.hp.hpux)
    • Re: Why I could not catch the signals on HP_UX?
      ... In thread 2, the server ... > callback, the object that the server uses to make callback is invalid. ... > possible signals in my signal handler, but I did not catch anything, ...
      (comp.sys.hp.hpux)
    • Re: Why I could not catch the signals on HP_UX?
      ... I have set the following signals in the main: ... the server's call back function just to test if the server can catch ... which mean when I call the callback using the client's ... The callback is a CORBA callback, Sometimes, I got a CORBA exception, ...
      (comp.sys.hp.hpux)
    • Re: HOW to create daemon in C
      ... Please follow the following steps to create a daemon process on ... A process receives signals from the terminal that it is connected to, ... A server should operate ... Inherited Descriptors and Standart I/0 Descriptors ...
      (comp.unix.programmer)
    • Re: HOW to create daemon in C
      ... I am able to understand and proceed with daemon!!! ... > A process receives signals from the terminal that it is connected to, ... A server should operate ... > SIGCHLD signal when they terminate, ...
      (comp.unix.programmer)