mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 19:59:03 +00:00
mkfifo: Don't rely on global errno
Core::System::mkfifo() doesn't rely on POSIX's mkfifo() and sends the syscall directly to our system. This means that the and errno doesn't get updated which ultimately caused the program to display an incorrect message 'mkfifo: Success (not an error)'.
This commit is contained in:
parent
4448a51824
commit
d1328639b4
Notes:
sideshowbarker
2024-07-17 01:00:06 +09:00
Author: https://github.com/krkk
Commit: d1328639b4
Pull-request: https://github.com/SerenityOS/serenity/pull/18976
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
for (auto path : paths) {
|
||||
auto error_or_void = Core::System::mkfifo(path, mode);
|
||||
if (error_or_void.is_error()) {
|
||||
perror("mkfifo");
|
||||
warnln("mkfifo: Couldn't create fifo '{}': {}", path, error_or_void.error());
|
||||
exit_code = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue