Enlarge threads and ports KMessage notification stack buffers
They were too small for all the fields added. This is why the system profiler skipped "thread added" notifications. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43216 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -367,7 +367,7 @@ PortNotificationService::PortNotificationService()
|
||||
void
|
||||
PortNotificationService::Notify(uint32 opcode, port_id port)
|
||||
{
|
||||
char eventBuffer[64];
|
||||
char eventBuffer[128];
|
||||
KMessage event;
|
||||
event.SetTo(eventBuffer, sizeof(eventBuffer), PORT_MONITOR);
|
||||
event.AddInt32("event", opcode);
|
||||
|
||||
@@ -121,7 +121,7 @@ public:
|
||||
void Notify(uint32 eventCode, team_id teamID, thread_id threadID,
|
||||
Thread* thread = NULL)
|
||||
{
|
||||
char eventBuffer[128];
|
||||
char eventBuffer[180];
|
||||
KMessage event;
|
||||
event.SetTo(eventBuffer, sizeof(eventBuffer), THREAD_MONITOR);
|
||||
event.AddInt32("event", eventCode);
|
||||
|
||||
Reference in New Issue
Block a user