Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32719 - rfcomm (net-wireless/bluez-utils) should flush stdout
Summary: rfcomm (net-wireless/bluez-utils) should flush stdout
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal minor (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-04 08:40 UTC by Sybren Stüvel
Modified: 2003-11-23 08:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the bluez-utils-2.3.ebuild ebuild to use my bluez-utils-2.3-rfcomm.patch patch (bluez-utils-2.3-rfcomm.ebuild.patch,324 bytes, patch)
2003-11-04 08:41 UTC, Sybren Stüvel
Details | Diff
Patches rfcomm to flush stdout (bluez-utils-2.3-rfcomm.patch,966 bytes, patch)
2003-11-04 08:47 UTC, Sybren Stüvel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sybren Stüvel 2003-11-04 08:40:14 UTC
rfcomm (part of net-wireless/bluez-utils) should flush stdout when a new (incoming and/or outgoing) connection has been made. With this patch, scripts can use rfcomm to connect via bluetooth and fork() the process in order to start using the connection (ie. by running pppd over it).
Comment 1 Sybren Stüvel 2003-11-04 08:41:56 UTC
Created attachment 20256 [details, diff]
Patch for the bluez-utils-2.3.ebuild ebuild to use my bluez-utils-2.3-rfcomm.patch patch

Patch for the bluez-utils-2.3.ebuild ebuild to use my
bluez-utils-2.3-rfcomm.patch patch - will be attached after this one.
Comment 2 Sybren Stüvel 2003-11-04 08:47:20 UTC
Created attachment 20257 [details, diff]
Patches rfcomm to flush stdout

Patches rfcomm to flush stdout when a connection is made. This can be tested
like this:

rfcomm connect /dev/rfcomm0  00:11:22:33:44:55 2 | cat

Without my patch, you will see the output when the connection is closed and
rfcomm quits. With my patch, the output 'Connected /dev/rfcomm0 to
00:11:22:33:44:55 on channel 2' will be shown immediately upon connection,
allowing other scripts to react on the connection.
Comment 3 Sybren Stüvel 2003-11-04 08:53:02 UTC
PS: This is a complete, tested solution. At least on my box ;-)
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-11-05 00:32:21 UTC
sounds like a pretty harmless patch, i'll consider it for -r1. in the meantime,
have you posted this patch to the bluez developers?
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-11-22 13:37:52 UTC
i've added this to bluez-utils-2.3-r1. i didn't version bump it because it probably doesn't affect many users to force them to re-emerge.
Comment 6 Sybren Stüvel 2003-11-23 08:01:30 UTC
Sounds reasonable! Thanx for adding it to Gentoo - it's my first piece of code that was added to something Open Source that is so well known ;-)