diff options
author | Junior Rantila <junior.rantila@gmail.com> | 2022-01-10 14:34:09 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-11 16:04:29 +0100 |
commit | 0d328f3c86a421089720883864d363dad2f88d25 (patch) | |
tree | e5580d13b0e94825293e2b5b0af4ca055602da8f /Userland/Utilities/flock.cpp | |
parent | 315e1c705f432e8dc31f716389198b99ff818647 (diff) | |
download | serenity-0d328f3c86a421089720883864d363dad2f88d25.zip |
LibCore+flock: Make Core::System::waitpid more ergonomic
Diffstat (limited to 'Userland/Utilities/flock.cpp')
-rw-r--r-- | Userland/Utilities/flock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/flock.cpp b/Userland/Utilities/flock.cpp index 565910139d..57d1609211 100644 --- a/Userland/Utilities/flock.cpp +++ b/Userland/Utilities/flock.cpp @@ -19,7 +19,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) } pid_t child_pid = TRY(Core::System::posix_spawnp(arguments.strings[2], nullptr, nullptr, &arguments.argv[2], environ)); - int status = TRY(Core::System::waitpid(child_pid, &status, 0)); + auto [_, status] = TRY(Core::System::waitpid(child_pid)); return WEXITSTATUS(status); } |