diff options
Diffstat (limited to 'src/common/identd.c')
-rw-r--r-- | src/common/identd.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/common/identd.c b/src/common/identd.c index f413c8ae..5cfc536f 100644 --- a/src/common/identd.c +++ b/src/common/identd.c @@ -58,8 +58,10 @@ identd (char *username) identd_is_running = FALSE; - snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s with user name \"%s\"\n", - inet_ntoa (addr.sin_addr), username); +#if 0 /* causes random crashes, probably due to CreateThread */ + EMIT_SIGNAL (XP_TE_IDENTD, current_sess, inet_ntoa (addr.sin_addr), username, NULL, NULL, 0); +#endif + snprintf (outbuf, sizeof (outbuf), "*\tServicing ident request from %s as %s\n", inet_ntoa (addr.sin_addr), username); PrintText (current_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); @@ -143,7 +145,10 @@ identd_ipv6 (char *username) snprintf (ipv6buf, sizeof (ipv6buf) - 1, "[SOCKET ERROR: 0x%X]", WSAGetLastError ()); } - snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s with user name \"%s\"\n", ipv6buf, username); +#if 0 /* causes random crashes, probably due to CreateThread */ + EMIT_SIGNAL (XP_TE_IDENTD, current_sess, ipv6buf, username, NULL, NULL, 0); +#endif + snprintf (outbuf, sizeof (outbuf), "*\tServicing ident request from %s as %s\n", ipv6buf, username); PrintText (current_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); |