aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-19 11:52:18 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-19 11:52:18 -0700
commit1a87f44325327aff426118da1d9fdf8ac01f67a9 (patch)
tree309b3e63d6baef111ebab8493b793ac54e7b2720 /common.cpp
parentc8bc535f22d04f12b34e9722839764dcc9198871 (diff)
Re-implement $history variable
Added -L option to set to mean "don't abbreviate"
Diffstat (limited to 'common.cpp')
-rw-r--r--common.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/common.cpp b/common.cpp
index 50b5e797..2124fe67 100644
--- a/common.cpp
+++ b/common.cpp
@@ -1969,7 +1969,6 @@ void set_main_thread() {
main_thread_id = pthread_self();
}
-
/* Notice when we've forked */
static pid_t initial_pid;
@@ -1987,7 +1986,7 @@ void setup_fork_guards(void) {
initial_pid = getpid();
}
-static bool is_main_thread() {
+bool is_main_thread() {
assert (main_thread_id != 0);
return main_thread_id == pthread_self();
}