Commit e4edda09 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Print errno and strerr when listen() to socket fails

parent 94b9e27a
......@@ -404,7 +404,7 @@ static void execute_kwallet(pam_handle_t *pamh, struct passwd *userInfo, int toW
}
if (listen(envSocket, 5) == -1) {
syslog(LOG_INFO, "%s-kwalletd: Couldn't listen in socket\n", logPrefix);
syslog(LOG_INFO, "%s-kwalletd: Couldn't listen in socket: %d-%s\n", logPrefix, errno, strerror(errno));
goto cleanup;
}
//finally close stderr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment