From: Greg Kroah-Hartman Date: Thu, 22 May 2008 03:39:10 +0000 (-0700) Subject: if --bash is enabled, fork and handle the send in the background X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/5d401c4e80c80471a85f303a0622472edffb2a88 if --bash is enabled, fork and handle the send in the background otherwise, wait for it to happen. --- 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);