On 8/13/09, Warren Baird <wjba...@alumni.uwaterloo.ca> wrote: > Whoops - hit send too early... the shell script should have looked like > this: > > #!/bin/sh > mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage > org.freesmartphone.Usage.SetResourcePolicy RESOURCE enabled > myprogram > mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage > org.freesmartphone.Usage.SetResourcePolicy RESOURCE disabled > > except that with the shell script approach, if the script itself is killed, > the resource isn't released. > > I believe Paul's point is that fsoraw is a perfectly legitimate and > "FSO-like" way of holding a resource while a program is running... > > Warren > > > On Thu, Aug 13, 2009 at 10:56 AM, Warren Baird > <wjba...@alumni.uwaterloo.ca>wrote: > >> Hi Arne, >> >> From my understanding of things - fsoraw is just a short-cut to hold an >> FSO >> resource while a program runs. >> >> I believe that "fsoraw -r RESOURCE myprogram" is approximately like >> writing >> a script like: >> #!/bin/sh >> mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage >> org.freesmartphone.Usage.SetResourcePolicy Bluetooth enabled >> >> >> >> On Thu, Aug 13, 2009 at 5:34 AM, arne anka <openm...@ginguppin.de> wrote: >> >>> > I'm afraid yes. To me it looks like you haven't really read the page >>> >>> ah, that's the easy way out. you wrote the page, i assume ... >>> >>> well, i am still convinced, fso should do something about that instead of >>> relying on some 3d party app.
As discussed on IRC - no. It doesn't do refcounting. -- Sebastian Krzyszkowiak dos _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community