1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 09:33:13 +02:00

crash on invalid fd close if in DEBUGMODE

This commit is contained in:
Bram Matthys
2015-07-12 22:06:57 +02:00
parent ec2a04c7a1
commit 920e260e89
+3
View File
@@ -110,6 +110,9 @@ int fd_unmap(int fd)
fd);
ircd_log(LOG_ERROR, "[BUG] trying to close fd #%d in fd table, but this FD isn't reported open",
fd);
#ifdef DEBUGMODE
abort();
#endif
return 0;
}