--- libev/ev_port.c 2016/02/18 04:48:05 1.29 +++ libev/ev_port.c 2019/06/26 00:01:46 1.30 @@ -1,7 +1,7 @@ /* * libev solaris event port backend * - * Copyright (c) 2007,2008,2009,2010,2011 Marc Alexander Lehmann + * Copyright (c) 2007,2008,2009,2010,2011,2019 Marc Alexander Lehmann * All rights reserved. * * Redistribution and use in source and binary forms, with or without modifica- @@ -69,7 +69,10 @@ ) { if (errno == EBADFD) - fd_kill (EV_A_ fd); + { + assert (("libev: port_associate found invalid fd", errno != EBADFD); + fd_kill (EV_A_ fd); + } else ev_syserr ("(libev) port_associate"); }