|
@@ -58,9 +58,9 @@ bool KClientPort::IsSignaled() const {
|
|
|
|
|
|
|
|
ResultCode KClientPort::CreateSession(KClientSession** out) {
|
|
ResultCode KClientPort::CreateSession(KClientSession** out) {
|
|
|
// Reserve a new session from the resource limit.
|
|
// Reserve a new session from the resource limit.
|
|
|
- // KScopedResourceReservation session_reservation(kernel.CurrentProcess()->GetResourceLimit(),
|
|
|
|
|
- // LimitableResource::Sessions);
|
|
|
|
|
- // R_UNLESS(session_reservation.Succeeded(), ResultLimitReached);
|
|
|
|
|
|
|
+ KScopedResourceReservation session_reservation(kernel.CurrentProcess()->GetResourceLimit(),
|
|
|
|
|
+ LimitableResource::Sessions);
|
|
|
|
|
+ R_UNLESS(session_reservation.Succeeded(), ResultLimitReached);
|
|
|
|
|
|
|
|
// Update the session counts.
|
|
// Update the session counts.
|
|
|
{
|
|
{
|
|
@@ -104,7 +104,7 @@ ResultCode KClientPort::CreateSession(KClientSession** out) {
|
|
|
session->Initialize(this, parent->GetName());
|
|
session->Initialize(this, parent->GetName());
|
|
|
|
|
|
|
|
// Commit the session reservation.
|
|
// Commit the session reservation.
|
|
|
- // session_reservation.Commit();
|
|
|
|
|
|
|
+ session_reservation.Commit();
|
|
|
|
|
|
|
|
// Register the session.
|
|
// Register the session.
|
|
|
KSession::Register(kernel, session);
|
|
KSession::Register(kernel, session);
|