Skip to content

Commit

Permalink
Option to disable bottom-up exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jolivier23 authored and mplegendre committed Oct 5, 2015
1 parent 1f3f1bd commit bad86ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/include/spindle_launch.h
Expand Up @@ -48,6 +48,7 @@ extern "C" {
#define OPT_SHMCACHE (1 << 16)
#define OPT_SEC ((1 << 17) | (1 << 18))
#define OPT_SUBAUDIT (1 << 19)
#define OPT_PERSIST (1 << 20)

#define OPT_SET_SEC(OPT, X) OPT |= (X << 17)
#define OPT_GET_SEC(OPT) ((OPT >> 17) & 3)
Expand Down
5 changes: 5 additions & 0 deletions src/server/auditserver/ldcs_audit_server_handlers.c
Expand Up @@ -1967,6 +1967,11 @@ static int handle_send_exit_ready_if_done(ldcs_process_data_t *procdata)
ldcs_message_t msg;
debug_printf2("Checking if we need to send an exit ready message\n");

if (procdata->opts & OPT_PERSIST) {
debug_printf2("Bottom-up exit has been disabled\n");
return 0;
}

if (procdata->sent_exit_ready) {
debug_printf2("Already sent an exit message. Not sending another\n");
return 0;
Expand Down

0 comments on commit bad86ff

Please sign in to comment.