mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibCore: Add Core::System::setpgid()
This commit is contained in:
parent
ee46cee31f
commit
8de8a7766d
Notes:
sideshowbarker
2024-07-17 21:53:31 +09:00
Author: https://github.com/alimpfard
Commit: 8de8a7766d
Pull-request: https://github.com/SerenityOS/serenity/pull/11340
Reviewed-by: https://github.com/awesomekling
2 changed files with 8 additions and 0 deletions
|
@ -477,6 +477,13 @@ ErrorOr<void> setegid(gid_t gid)
|
|||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<void> setpgid(pid_t pid, pid_t pgid)
|
||||
{
|
||||
if (::setpgid(pid, pgid) < 0)
|
||||
return Error::from_syscall("setpgid"sv, -errno);
|
||||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<bool> isatty(int fd)
|
||||
{
|
||||
int rc = ::isatty(fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue