aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-17 20:47:04 -0700
committerMike Frysinger <vapier@gentoo.org>2012-06-23 17:12:36 -0400
commita7f12a1d89aa3d7810996330b79acc577f3a558e (patch)
tree983cbac3fb2e135a73b56e8626eb27968f4d2fbf /src
parentlibsandbox: add uninstall target to fix distcheck (diff)
downloadsandbox-a7f12a1d89aa3d7810996330b79acc577f3a558e.tar.gz
sandbox-a7f12a1d89aa3d7810996330b79acc577f3a558e.tar.bz2
sandbox-a7f12a1d89aa3d7810996330b79acc577f3a558e.zip
sandbox: drop beep support
Almost no one has beep support turned on anymore, and ebeep in the main tree has been deprecated (meaning it wasn't found useful while building packages). So punt support for it from sandbox too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/environ.c1
-rw-r--r--src/sandbox.c15
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)