mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
UserspaceEmulator: Add support for setsid
This commit is contained in:
parent
fcc38422c6
commit
290e7957b7
Notes:
sideshowbarker
2024-07-19 01:45:15 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/290e7957b74 Pull-request: https://github.com/SerenityOS/serenity/pull/3831 Reviewed-by: https://github.com/awesomekling
2 changed files with 8 additions and 0 deletions
|
@ -395,6 +395,8 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
|
|||
return virt$sched_setparam(arg1, arg2);
|
||||
case SC_set_thread_name:
|
||||
return virt$set_thread_name(arg1, arg2, arg3);
|
||||
case SC_setsid:
|
||||
return virt$setsid();
|
||||
default:
|
||||
reportln("\n=={}== \033[31;1mUnimplemented syscall: {}\033[0m, {:p}", getpid(), Syscall::to_string((Syscall::Function)function), function);
|
||||
dump_backtrace();
|
||||
|
@ -1460,4 +1462,9 @@ int Emulator::virt$set_thread_name(pid_t pid, FlatPtr name_addr, size_t name_len
|
|||
return syscall(SC_set_thread_name, pid, name.characters(), name.length());
|
||||
}
|
||||
|
||||
pid_t Emulator::virt$setsid()
|
||||
{
|
||||
return syscall(SC_setsid);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -153,6 +153,7 @@ private:
|
|||
int virt$sched_setparam(int, FlatPtr);
|
||||
int virt$sched_getparam(pid_t, FlatPtr);
|
||||
int virt$set_thread_name(pid_t, FlatPtr, size_t);
|
||||
pid_t virt$setsid();
|
||||
|
||||
FlatPtr allocate_vm(size_t size, size_t alignment);
|
||||
|
||||
|
|
Loading…
Reference in a new issue