--- libev/ev.c 2012/04/02 20:22:30 1.417 +++ libev/ev.c 2012/04/02 23:14:41 1.418 @@ -1,7 +1,7 @@ /* * libev event processing core, watcher management * - * Copyright (c) 2007,2008,2009,2010,2011 Marc Alexander Lehmann + * Copyright (c) 2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann * All rights reserved. * * Redistribution and use in source and binary forms, with or without modifica- @@ -2932,7 +2932,7 @@ } } -void +int ev_run (EV_P_ int flags) { #if EV_FEATURE_API @@ -3099,6 +3099,8 @@ #if EV_FEATURE_API --loop_depth; #endif + + return activecnt; } void