Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 343071
Collapse All | Expand All

(-)eix-0.22.3.orig/src/cache/common/ebuild_exec.cc (-3 / +12 lines)
Lines 68-80 Link Here
68
	m_handler.sa_handler = ebuild_sig_handler;
68
	m_handler.sa_handler = ebuild_sig_handler;
69
	m_handler.sa_flags = 0;
69
	m_handler.sa_flags = 0;
70
	sigemptyset(&(m_handler.sa_mask));
70
	sigemptyset(&(m_handler.sa_mask));
71
	if(((handleHUP.sa_flags & SA_SIGINFO) != 0) ||
71
	if(
72
    #ifdef SA_SIGINFO
73
        ((handleHUP.sa_flags & SA_SIGINFO) != 0) ||
74
    #endif
72
		(handleHUP.sa_handler != SIG_IGN))
75
		(handleHUP.sa_handler != SIG_IGN))
73
		sigaction(SIGHUP, &m_handler, NULL);
76
		sigaction(SIGHUP, &m_handler, NULL);
74
	if(((handleINT.sa_flags & SA_SIGINFO) != 0) ||
77
	if(
78
    #ifdef SA_SIGINFO
79
        ((handleINT.sa_flags & SA_SIGINFO) != 0) ||
80
    #endif
75
		(handleINT.sa_handler != SIG_IGN))
81
		(handleINT.sa_handler != SIG_IGN))
76
		sigaction(SIGINT, &m_handler, NULL);
82
		sigaction(SIGINT, &m_handler, NULL);
77
	if(((handleTERM.sa_flags & SA_SIGINFO) != 0) ||
83
	if(
84
    #ifdef SA_SIGINFO
85
        ((handleTERM.sa_flags & SA_SIGINFO) != 0) ||
86
    #endif
78
		(handleTERM.sa_handler != SIG_IGN))
87
		(handleTERM.sa_handler != SIG_IGN))
79
		sigaction(SIGTERM, &m_handler, NULL);
88
		sigaction(SIGTERM, &m_handler, NULL);
80
#else
89
#else

Return to bug 343071