mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue