From 5d401c4e80c80471a85f303a0622472edffb2a88 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 21 May 2008 20:39:10 -0700 Subject: [PATCH] if --bash is enabled, fork and handle the send in the background otherwise, wait for it to happen. --- bti.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bti.c b/bti.c index 5921e3d..5a139ea 100644 --- a/bti.c +++ b/bti.c @@ -401,10 +401,12 @@ int main(int argc, char *argv[], char *envp[]) /* fork ourself so that the main shell can get on * with it's life as we try to connect and handle everything */ - child = fork(); - if (child) { - dbg("child is %d\n", child); - exit(0); + if (session->bash) { + child = fork(); + if (child) { + dbg("child is %d\n", child); + exit(0); + } } retval = send_tweet(session); -- 2.39.5