summaryrefslogtreecommitdiffstats
path: root/input/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-19 22:11:39 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-19 22:11:39 +0000
commite36b830e0b772a0ccba8275e634b624217b37577 (patch)
tree2d6b21f89e319dfba645baa74b1a5e40232bffb3 /input/main.c
parent822436aa302848f5c12c32a4d6a4dd5d9283b74d (diff)
Don't become a daemon
Diffstat (limited to 'input/main.c')
-rw-r--r--input/main.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/input/main.c b/input/main.c
index ad35c32e..df1eee9e 100644
--- a/input/main.c
+++ b/input/main.c
@@ -32,7 +32,6 @@
#include <string.h>
#include <errno.h>
#include <signal.h>
-#include <getopt.h>
#include <dbus/dbus.h>
@@ -52,23 +51,6 @@ static void sig_term(int sig)
int main(int argc, char *argv[])
{
struct sigaction sa;
- int opt, daemonize = 1;
-
- while ((opt = getopt(argc, argv, "n")) != EOF) {
- switch (opt) {
- case 'n':
- daemonize = 0;
- break;
-
- default:
- exit(1);
- }
- }
-
- if (daemonize && daemon(0, 0)) {
- error("Can't daemonize: %s (%d)", strerror(errno), errno);
- exit(1);
- }
start_logging("input", "Bluetooth Input daemon");