mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibCore: Add Core::System::setpgid()
This commit is contained in:
parent
ee46cee31f
commit
8de8a7766d
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