@@ -54,7 +54,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
54
54
#include "./gridinit_alerts.h"
55
55
#include "../lib/gridinit-internals.h"
56
56
57
- #define USERFLAG_ONDIE_EXIT 0x00000001
58
57
#define USERFLAG_PROCESS_DIED 0x00000002
59
58
#define USERFLAG_PROCESS_RESTARTED 0x00000004
60
59
@@ -209,13 +208,6 @@ alert_proc_died(void *udata, struct child_info_s *ci)
209
208
{
210
209
(void ) udata ;
211
210
212
- /* if the user_flags on the process contain the on_die:exit flag,
213
- * then we mark the gridinit to stop */
214
- if (ci -> user_flags & USERFLAG_ONDIE_EXIT ) {
215
- supervisor_children_enable (ci -> key , FALSE);
216
- flag_running = FALSE;
217
- }
218
-
219
211
if (ci -> started )
220
212
supervisor_children_set_user_flags (ci -> key , USERFLAG_PROCESS_DIED );
221
213
}
@@ -1250,10 +1242,6 @@ _cfg_section_service(GKeyFile *kf, const gchar *section, GError **err)
1250
1242
if (0 > supervisor_children_set_respawn (str_key , FALSE))
1251
1243
WARN ("Failed to make [%s] respawn : %s" , str_key , strerror (errno ));
1252
1244
}
1253
- else if (0 == g_ascii_strcasecmp (str_ondie , "exit" )) {
1254
- supervisor_children_set_user_flags (str_key , USERFLAG_ONDIE_EXIT );
1255
- supervisor_children_set_respawn (str_key , FALSE);
1256
- }
1257
1245
else if (0 == g_ascii_strcasecmp (str_ondie , "respawn" ))
1258
1246
supervisor_children_set_respawn (str_key , TRUE);
1259
1247
else {
0 commit comments