[haiku-commits] Re: haiku: hrev53378 - in src: system/kernel/vm kits/media

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 15 Aug 2019 10:46:26 +0200

Hi,

-                       B_ANY_ADDRESS, size, B_NO_LOCK, B_READ_AREA |

B_WRITE_AREA);
+                       B_ANY_ADDRESS, size, B_NO_LOCK,
+                       B_READ_AREA | B_WRITE_AREA | B_CLONEABLE_AREA);


I see that you tested it carefully. rotfl.

#if KDEBUG

-               panic("attempting to clone area \"%s\" (%" B_PRId32 ")!",
-                       sourceArea->name, sourceID);
+               Team* team = thread_get_current_thread()->team;
+               dprintf("team \"%s\" (%" B_PRId32 ") attempted to clone
area \"%s\" (%"
+                       B_PRId32 ")!\n", team->Name(), team->id,
sourceArea->name, sourceID);
 #endif
                status = B_NOT_ALLOWED;
        } else if (sourceArea->cache_type == CACHE_TYPE_NULL) {


Shouldn't it work the way it worked? I think the haiku devs want to catch
this critical stuff, at least I hope so.

-- 
Saluti,
Dario

Other related posts: