Improved signal and UDP bind debugging information, decreased verbosity of windows SHM errors.
This commit is contained in:
parent
2919e74d4e
commit
8e94528d6f
3 changed files with 3 additions and 3 deletions
|
@ -453,7 +453,7 @@ void Util::Config::activate() {
|
||||||
/// a SIGINT, SIGHUP or SIGTERM signal, reaps children for the SIGCHLD
|
/// a SIGINT, SIGHUP or SIGTERM signal, reaps children for the SIGCHLD
|
||||||
/// signal, and ignores all other signals.
|
/// signal, and ignores all other signals.
|
||||||
void Util::Config::signal_handler(int signum, siginfo_t * sigInfo, void * ignore) {
|
void Util::Config::signal_handler(int signum, siginfo_t * sigInfo, void * ignore) {
|
||||||
HIGH_MSG("Received signal %d from process %d", signum, sigInfo->si_pid);
|
HIGH_MSG("Received signal %s (%d) from process %d", strsignal(signum), signum, sigInfo->si_pid);
|
||||||
switch (signum) {
|
switch (signum) {
|
||||||
case SIGINT: //these three signals will set is_active to false.
|
case SIGINT: //these three signals will set is_active to false.
|
||||||
case SIGHUP:
|
case SIGHUP:
|
||||||
|
|
|
@ -353,7 +353,7 @@ namespace IPC {
|
||||||
} while (i < 10 && !handle && autoBackoff);
|
} while (i < 10 && !handle && autoBackoff);
|
||||||
}
|
}
|
||||||
if (!handle) {
|
if (!handle) {
|
||||||
FAIL_MSG("%s for page %s failed with error code %u", (master ? "CreateFileMapping" : "OpenFileMapping"), name.c_str(), GetLastError());
|
MEDIUM_MSG("%s for page %s failed with error code %u", (master ? "CreateFileMapping" : "OpenFileMapping"), name.c_str(), GetLastError());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mapped = (char *)MapViewOfFile(handle, FILE_MAP_ALL_ACCESS, 0, 0, 0);
|
mapped = (char *)MapViewOfFile(handle, FILE_MAP_ALL_ACCESS, 0, 0, 0);
|
||||||
|
|
|
@ -1157,7 +1157,7 @@ int Socket::UDPConnection::bind(int port) {
|
||||||
return ntohs(s4.sin_port);
|
return ntohs(s4.sin_port);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_MSG(DLVL_FAIL, "Could not bind UDP socket to port %d", port);
|
DEBUG_MSG(DLVL_FAIL, "Could not bind UDP socket to port %d: %s", port, strerror(errno));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue