diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/environ.c | 1 | ||||
-rw-r--r-- | src/sandbox.c | 15 |
2 files changed, 1 insertions, 15 deletions
diff --git a/src/environ.c b/src/environ.c index 8f4968f..45bf9a6 100644 --- a/src/environ.c +++ b/src/environ.c @@ -188,7 +188,6 @@ static int setup_cfg_vars(struct sandbox_info_t *sandbox_info) { setup_cfg_var(ENV_SANDBOX_VERBOSE); setup_cfg_var(ENV_SANDBOX_DEBUG); - setup_cfg_var(ENV_SANDBOX_BEEP); setup_cfg_var(ENV_NOCOLOR); if (-1 == setup_access_var(ENV_SANDBOX_DENY)) diff --git a/src/sandbox.c b/src/sandbox.c index a8e28fe..0fda106 100644 --- a/src/sandbox.c +++ b/src/sandbox.c @@ -85,8 +85,7 @@ static int setup_sandbox(struct sandbox_info_t *sandbox_info, bool interactive) static void print_sandbox_log(char *sandbox_log) { - int sandbox_log_file, beep_count; - char *beep_count_env; + int sandbox_log_file; size_t len; char buffer[1024]; @@ -114,18 +113,6 @@ static void print_sandbox_log(char *sandbox_log) sb_close(sandbox_log_file); SB_EERROR("--------------------------------------------------------------------------------", "\n"); - - beep_count_env = getenv(ENV_SANDBOX_BEEP); - if (beep_count_env) - beep_count = atoi(beep_count_env); - else - beep_count = DEFAULT_BEEP_COUNT; - - while (beep_count--) { - fputc('\a', stderr); - if (beep_count) - sleep(1); - } } static void stop(int signum) |