summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2021-07-23 21:23:56 -0400
committerGravatar GitHub2021-07-23 21:23:56 -0400
commit2656020608e32f1f0120dead047b61302bcb4461 (patch)
tree0f4b89d1e51ceb1232eec020d0fe22c7d8b7f930 /src/core/hle/kernel/svc.cpp
parentMerge pull request #6686 from ReinUsesLisp/vk-optimal-copy (diff)
parenthle: service: kernel_helpers: Remove unnecessary pragma once. (diff)
downloadyuzu-2656020608e32f1f0120dead047b61302bcb4461.tar.gz
yuzu-2656020608e32f1f0120dead047b61302bcb4461.tar.xz
yuzu-2656020608e32f1f0120dead047b61302bcb4461.zip
Merge pull request #6551 from bunnei/improve-kernel-obj
Improve management of kernel objects
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 8339e11a0..2eb532472 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -298,6 +298,7 @@ static ResultCode ConnectToNamedPort(Core::System& system, Handle* out, VAddr po
298 // Create a session. 298 // Create a session.
299 KClientSession* session{}; 299 KClientSession* session{};
300 R_TRY(port->CreateSession(std::addressof(session))); 300 R_TRY(port->CreateSession(std::addressof(session)));
301 port->Close();
301 302
302 // Register the session in the table, close the extra reference. 303 // Register the session in the table, close the extra reference.
303 handle_table.Register(*out, session); 304 handle_table.Register(*out, session);
@@ -1439,11 +1440,6 @@ static void ExitProcess(Core::System& system) {
1439 LOG_INFO(Kernel_SVC, "Process {} exiting", current_process->GetProcessID()); 1440 LOG_INFO(Kernel_SVC, "Process {} exiting", current_process->GetProcessID());
1440 ASSERT_MSG(current_process->GetStatus() == ProcessStatus::Running, 1441 ASSERT_MSG(current_process->GetStatus() == ProcessStatus::Running,
1441 "Process has already exited"); 1442 "Process has already exited");
1442
1443 current_process->PrepareForTermination();
1444
1445 // Kill the current thread
1446 system.Kernel().CurrentScheduler()->GetCurrentThread()->Exit();
1447} 1443}
1448 1444
1449static void ExitProcess32(Core::System& system) { 1445static void ExitProcess32(Core::System& system) {