Commit aecfd32
committed
broker: forward non-deadly signals to all jobs
Problem: The broker blocks all signals in main(), except those for
which a core dump may be generated, then handles a specific smaller
set of "fatal" signals in broker_handle_signals(). This leaves all
other signals blocked, and any attempt to send one of these signals
to a batch job will be ignored since the job shell delivers them
directly to the broker.
Add SIGUSR1 and SIGUSR2 to the list of signals handled in
broker_handle_signals(), and instead of calling runat_abort() for
these 2 signals, forward them to all jobs via the job-manager.killall
RPC. If the RPC fails, send the signal locally so the signal goes
somewhere.
For now, keep the current behavior for the set of fatal signals that
terminate rc2 to avoid breaking anything that depends on this behavior.1 parent 331fb13 commit aecfd32
1 file changed
+71
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
1308 | 1309 | | |
1309 | 1310 | | |
1310 | 1311 | | |
1311 | | - | |
| 1312 | + | |
| 1313 | + | |
1312 | 1314 | | |
1313 | 1315 | | |
1314 | 1316 | | |
| |||
1965 | 1967 | | |
1966 | 1968 | | |
1967 | 1969 | | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
1968 | 2019 | | |
1969 | | - | |
| 2020 | + | |
1970 | 2021 | | |
1971 | 2022 | | |
1972 | 2023 | | |
1973 | 2024 | | |
1974 | 2025 | | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
1975 | 2044 | | |
1976 | 2045 | | |
1977 | 2046 | | |
| |||
0 commit comments