diff options
Diffstat (limited to 'Userland/Libraries/LibCore/System.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/System.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/System.cpp b/Userland/Libraries/LibCore/System.cpp index d87ff035ae..f51145fac2 100644 --- a/Userland/Libraries/LibCore/System.cpp +++ b/Userland/Libraries/LibCore/System.cpp @@ -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); |