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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user