|
From: Mattias A. <mat...@us...> - 2001-03-30 12:45:13
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
btinit.c 1.4 1.5=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
minor changes, now btinit works with usermode stack
The diff of the modified file(s):
--- btinit.c 2001/03/22 11:12:10 1.4
+++ btinit.c 2001/03/30 12:45:11 1.5
@@ -96,7 +96,6 @@
#include "bt_vendor.h"
#include "bt_misc.h"
#include "bt_if.h"
-#include "bt_ipa.h"
=20
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */
/* General BTD stuff */
@@ -110,9 +109,9 @@
static int init_hw_speed =3D 0; /* not set */
static int do_hwinit =3D 1; /* do vendor specific initialization */
static int do_reset =3D 0; /* reset hw using I/O pins */
-static int phys_fd =3D -1; /* physical device e.g ttyS0 */
static jmp_buf jmpbuffer; /* used to jump back in program after doing rese=
t */
static int sdpsrv_pid =3D 0;
+int phys_fd =3D -1; /* physical device e.g ttyS0 */
=20
/* long option list */
static struct option long_options[] =3D
@@ -141,7 +140,6 @@
=20
syslog(LOG_INFO, "Bluetooth daemon starting\n");
=20
-
if (atexit(btd_cleanup) < 0)
{
printf("btd failed to register cleanup function.\n");
@@ -290,6 +288,7 @@
static void
btd_cleanup(void)
{
+ printf("btd_cleanup : Shutting down stack and terminating childs\n");
syslog(LOG_INFO, "btd_cleanup\n");
btd_killchilds();
=20
|