From a906580fb3dad08001a4779db33b57b07f63fbf3 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 3 Apr 2009 16:01:08 +0300 Subject: [PATCH] obexd: Don't open the tty at startup when in PC Suite mode We should only attempt tty opening when receiving the SIGUSR1 signal when in PC Suite mode. --- obexd/src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/obexd/src/main.c b/obexd/src/main.c index 0315f558c..2beebc0e2 100644 --- a/obexd/src/main.c +++ b/obexd/src/main.c @@ -192,6 +192,9 @@ static int devnode_setup(void) sa.sa_handler = sig_usr1; sigaction(SIGUSR1, &sa, NULL); + if (option_pcsuite) + return 0; + return tty_init(services, option_root, option_capability, option_devnode); } -- 2.47.3