From: "Petteri Räty" <betelgeuse@gentoo.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] a2dpd getting into an endless loop when it fails to get a socket and not dying on CTRL+c
Date: Sun, 13 May 2007 20:55:09 +0300 [thread overview]
Message-ID: <464750FD.3080409@gentoo.org> (raw)
In-Reply-To: <4646071D.6020303@gentoo.org>
[-- Attachment #1.1.1: Type: text/plain, Size: 220 bytes --]
Petteri Räty kirjoitti:
>
> Basically it seems to go into an endless loop when it can't get the
> socket and I must then kill it with kill -9 <pid>.
>
Attached is a patch that fixes this.
Regards,
Petteri
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: a2dpd-sigint.patch --]
[-- Type: text/x-patch; name="a2dpd-sigint.patch", Size: 454 bytes --]
Index: a2dpd.c
===================================================================
RCS file: /cvsroot/bluetooth-alsa/plugz/alsa-plugins/a2dpd/a2dpd.c,v
retrieving revision 1.31
diff -u -r1.31 a2dpd.c
--- a2dpd.c 10 May 2007 10:06:11 -0000 1.31
+++ a2dpd.c 13 May 2007 17:54:09 -0000
@@ -1780,7 +1780,7 @@
a2dp_init();
// Run main loop
- while(main_loop(addr)<0) {
+ while(main_loop(addr)<0 && !bSigINTReceived) {
sleep(1);
}
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-05-13 17:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-12 18:27 [Bluez-devel] a2dpd getting into an endless loop when it fails to get a socket and not dying on CTRL+c Petteri Räty
2007-05-13 5:08 ` [Bluez-devel] RE : " Frederic Dalleau
2007-05-13 17:55 ` Petteri Räty [this message]
2007-05-13 18:20 ` [Bluez-devel] " Petteri Räty
2007-05-13 18:56 ` [Bluez-devel] RE : " Frederic Dalleau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=464750FD.3080409@gentoo.org \
--to=betelgeuse@gentoo.org \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox