From 6f363db8f182ec5a979e874acd95e3f6baf1b874 Mon Sep 17 00:00:00 2001 From: gardners Date: Sat, 5 May 2012 19:06:30 +0930 Subject: [PATCH] added useful message for when closing due to incorrect uid. --- monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor.c b/monitor.c index 93aa071d..9c6ab646 100644 --- a/monitor.c +++ b/monitor.c @@ -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) {