mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
Kernel: Use KResultOr and TRY() for ThreadTracer
Also make the constructor private, since it's only called by the static factory function.
This commit is contained in:
@@ -785,10 +785,7 @@ void Process::set_tty(TTY* tty)
|
||||
|
||||
KResult Process::start_tracing_from(ProcessID tracer)
|
||||
{
|
||||
auto thread_tracer = ThreadTracer::create(tracer);
|
||||
if (!thread_tracer)
|
||||
return ENOMEM;
|
||||
m_tracer = move(thread_tracer);
|
||||
m_tracer = TRY(ThreadTracer::try_create(tracer));
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user