Notice: Trying to access array offset on value of type bool in /srv/www/vhosts/ on line 649 FS#66 : libpnd : pnd_pnd_mount() function bug

OpenPandora Main OS

  • Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Core
  • Operating System All
  • Severity High
  • Reported Version SuperZaxxon Beta 4
Attached to Project: OpenPandora Main OS
Opened by Anonymous Submitter - 04.03.2010
Last edited by vimacs - 10.03.2010

FS#66 - libpnd : pnd_pnd_mount() function bug

libpnd : pnd_pnd_mount() function do not seems to wait the mount to success before returning, this can cause some application to try to access the pnd content before it really get mounted.
Closed by  vimacs
10.03.2010 17:42
Reason for closing:  Fixed
Additional comments about closing:  should be fixed
Jeff commented on 05.03.2010 01:41
I changed wait() to waitpid() for mount and unmount; hopefully that'll sort you out. pnd_apps_exec() had that already, but commented out in favor of wait() .. not sure why; so I've flipped it back to waitpid as well,.. test and let me know how it goes :) jeff
Anonymous Submitter commented on 05.03.2010 08:11
Still not completly fixed, there's still some milliseconds delay which prevent the function to be really usefull / work correctly. Here is a sample code that will produce the problem : Sometime the function return before it's actually really mounted ( Work better than before, but still a very little delay that prevent the function to work as excepted everytime )
Anonymous Submitter commented on 05.03.2010 12:27
It seems the bugs comes from : line 225 : "fork &> /tmp/pndrun.out &" Remove the last "&" and all seems ok.


Available keyboard shortcuts


Task Details

Task Editing