mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-04 15:50:10 +01:00
[rpcsx-os] execve: fix process name setup
This commit is contained in:
parent
985a41a5d2
commit
d778e5cbe1
|
|
@ -739,6 +739,10 @@ SysResult execve(Thread *thread, ptr<char> fname, ptr<ptr<char>> argv,
|
|||
name = name.substr(slashP + 1);
|
||||
}
|
||||
|
||||
if (name.size() > 15) {
|
||||
name.resize(15);
|
||||
}
|
||||
|
||||
pthread_setname_np(pthread_self(), name.c_str());
|
||||
|
||||
std::thread([&] {
|
||||
|
|
|
|||
Loading…
Reference in a new issue