VirtualBox

Changeset 23427 in vbox for trunk/src/libs/xpcom18a4


Ignore:
Timestamp:
Sep 30, 2009 9:13:45 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53008
Message:

XPCOM: don't override SIGCHLD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/uxproces.c

    r20282 r23427  
    160160#if !defined(_PR_NATIVE_THREADS)
    161161static void pr_InstallSigchldHandler(void);
     162static void (*old_sig_handler)(int) = NULL;
    162163#endif
    163164
     
    797798
    798799    errno = errnoCopy;
     800    if(old_sig_handler && old_sig_handler != SIG_IGN)
     801        old_sig_handler(sig);
    799802}
    800803
     
    813816    rv = sigaction(SIGCHLD, &act, &oact);
    814817    PR_ASSERT(0 == rv);
     818    old_sig_handler = oact.sa_handler;
    815819    /* Make sure we are not overriding someone else's SIGCHLD handler */
    816820#ifndef _PR_SHARE_CLONES
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette