mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
nohup: Use return code 127 for errors caught by serenity_main()
For any errors that occur during the runtime of nohup, POSIX uses a 127 return code.
This commit is contained in:
parent
8bb459e0ec
commit
02d8aaa2e8
Notes:
sideshowbarker
2024-07-17 02:42:21 +09:00
Author: https://github.com/kemzeb Commit: https://github.com/SerenityOS/serenity/commit/02d8aaa2e8 Pull-request: https://github.com/SerenityOS/serenity/pull/22842
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ void dup_out_file(int fd_to_redirect)
|
|||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
Main::set_return_code_for_errors(127);
|
||||
TRY(Core::System::pledge("stdio wpath cpath rpath exec sigaction"));
|
||||
|
||||
StringView utility;
|
||||
|
|
Loading…
Reference in a new issue