Re: [Bluez-devel] bluez-utils 2.7 default configuration

Marcel Holtmann
2004-05-31T22:22:08Z

Hi David,

> This patch adds support to pand for writing a pidfile and cleaning up
> the client connection on exit. I'll go play with initscripts next...

I applied this patch with some small modifications. And btw you forgot
the diff for the man page ;)

> static struct option main_lopts[] = {
> { "help", 0, 0, 'h' },
> { "listen", 0, 0, 's' },
> @@ -405,6 +481,8 @@
> { "encrypt", 0, 0, 'E' },
> { "master", 0, 0, 'M' },
> { "cache", 0, 0, 'C' },
> + { "pidfile", 1, 0, 'P' },
> + { "autokill", 0, 0, 'a' },
> { 0, 0, 0, 0 }
> };

I don't like --autokill and -a option. I named it --autozap and used -z
as option.

> + case 'P':
> + pidfile = strdup(optarg);
> + break;
> +
> + case 'a':
> + cleanup = 1;
> + break;
> +

If you don't modify main_sopts, this won't work.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.