added useful message for when closing due to incorrect uid.

This commit is contained in:
gardners 2012-05-05 19:06:30 +09:30
parent be806088b3
commit 6f363db8f1

View File

@ -186,6 +186,7 @@ int monitor_poll()
if (ucred.uid&&(ucred.uid!=getuid())) {
WHYF("monitor.socket client has wrong uid (%d versus %d)",
ucred.uid,getuid());
write(s,"CLOSE:Incorrect UID\n",strlen("CLOSE:Incorrect UID\n"));
close(s); continue;
}
else if (monitor_socket_count>=MAX_MONITOR_SOCKETS) {