|
From: Olov H. <ol...@us...> - 2001-03-09 15:55:45
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
btd.c 1.2 1.3=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added support for SIGTERM signal. Received by btdm when kill cmd is used.
The diff of the modified file(s):
--- btd.c 2001/03/02 12:35:41 1.2
+++ btd.c 2001/03/09 15:57:33 1.3
@@ -611,6 +611,7 @@
sigaction(SIGCHLD, &act, 0); /* Catches when pppd childs are done */
sigaction(SIGUSR1, &act, 0); /* Restart application */
sigaction(SIGUSR2, &act, 0); /* HW Upgrade ? */
+ sigaction(SIGTERM, &act, 0); /* Received when kill cmd is used */
}
=20
static void
@@ -680,6 +681,8 @@
=20=20=20=20=20
return;
}
+ else if(sig =3D=3D SIGTERM)
+ exit(0);
}
=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=3D=3D=3D */
|