- A hozzászóláshoz be kell jelentkezni
- 3364 megtekintés
Hozzászólások
Tök jó!
Majdnem tök jó.
Ez a rész nem tetszik:
Mar 23 16:53:36 hostom2 auth|security:info sshd[24314010]: Accepted password for projects from 10.129.15.141 port 33719 ssh2
Mar 23 16:54:12 hostom2 auth|security:err|error sshd[24314010]: error: mm_request_receive: socket closed
Vagyis: miért lesz egy síma disconnect-ből error-szintű syslog?
20150325.1752: Egy kis debug-infót beletéve:
socket closed errno=32
: There is no process to read data written to a pipe.
Mondjuk az igaz, hogy ezt az EPIPE-t ő maga teszi az errno-ba, amikor a read nullát ad vissza.
20150325.1820: Asszem a patch(1) nevű szoftvereszköz lesz a barátom.
--- monitor_wrap.corig 2015-03-17 06:49:20 +0100
+++ monitor_wrap.c 2015-03-23 18:19:11 +0100
@@ -153,11 +153,12 @@
debug3("%s entering", __func__);
if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
- if (errno == EPIPE) {
- error("%s: socket closed", __func__);
+ int ern= errno;
+
+ if (ern == EPIPE) {
cleanup_exit(255);
}
- fatal("%s: read: %s", __func__, strerror(errno));
+ fatal("%s: read: errno=%d: %s", __func__, ern, strerror (ern));
}
msg_len = get_u32(buf);
if (msg_len > 256 * 1024)
20150323.1838: Google barátunk szerint mindenki más is észrevette a problémát, és ugyanezt a megoldást javasolják.
- A hozzászóláshoz be kell jelentkezni