mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 11:09:05 +03:00
SystemServer: Improve error message when execv() fails
Previously perror() would just tell us that the file specified for execv() doesn't exist.
This commit is contained in:
parent
d7a03397af
commit
0ca5a393d1
Notes:
sideshowbarker
2024-07-18 12:08:31 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/0ca5a393d1f Pull-request: https://github.com/SerenityOS/serenity/pull/8066 Issue: https://github.com/SerenityOS/serenity/issues/8048
@ -234,7 +234,8 @@ void Service::spawn(int socket_fd)
|
||||
argv[m_extra_arguments.size() + 1] = nullptr;
|
||||
|
||||
rc = execv(argv[0], argv);
|
||||
perror("exec");
|
||||
warnln("Failed to execv({}, ...): {}", argv[0], strerror(errno));
|
||||
dbgln("Failed to execv({}, ...): {}", argv[0], strerror(errno));
|
||||
VERIFY_NOT_REACHED();
|
||||
} else if (!m_multi_instance) {
|
||||
// We are the parent.
|
||||
|
Loading…
Reference in New Issue
Block a user