aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 02:16:14 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 02:16:14 -0800
commitc9c2fc5ee346e15e934dd72ed08774d769cfd7a1 (patch)
tree0746962ac6267fcccb25eb6950074450d7bbc47d /common.h
parentb79854ad1aa814d9d35d76a1929b4726fa4bffa5 (diff)
Restore terminal foreground process group on exit
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.h b/common.h
index b0bf0593..9cb57488 100644
--- a/common.h
+++ b/common.h
@@ -729,6 +729,10 @@ void configure_thread_assertions_for_testing();
/** Set up a guard to complain if we try to do certain things (like take a lock) after calling fork */
void setup_fork_guards(void);
+/** Save the value of tcgetpgrp so we can restore it on exit */
+void save_term_foreground_process_group(void);
+void restore_term_foreground_process_group(void);
+
/** Return whether we are the child of a fork */
bool is_forked_child(void);
void assert_is_not_forked_child(const char *who);