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 21:20:25 +0300 [thread overview]
Message-ID: <464756E9.4090307@gentoo.org> (raw)
In-Reply-To: <464750FD.3080409@gentoo.org>
[-- Attachment #1.1: Type: text/plain, Size: 663 bytes --]
Petteri Räty kirjoitti:
> 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
>
>
Can someone explain why this code is in the main loop in the first
place. I would think that the sockets need to be created only once.
// Master socket
sockfd = make_server_socket();
if(sockfd<0) {
DBG("Cannot get UNIX socket");
return -1;
}
avdtpfd = a2dp_make_listen_socket(25);
if(avdtpfd<0) {
DBG("Cannot get AVDTP socket");
return -1;
}
Regards,
Petteri
[-- 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 18:20 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 ` [Bluez-devel] " Petteri Räty
2007-05-13 18:20 ` Petteri Räty [this message]
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=464756E9.4090307@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