[MEDIUM] indicate a reason for a task wakeup
It's very frequent to require some information about the
reason why a task is running. Some flags have been added
so that a task now knows if it got woken up due to I/O
completion, timeout, etc...
diff --git a/src/client.c b/src/client.c
index 606cf79..5ff1abe 100644
--- a/src/client.c
+++ b/src/client.c
@@ -409,7 +409,7 @@
* priorities to tasks.
*/
if (p->mode != PR_MODE_HEALTH)
- task_wakeup(t);
+ task_wakeup(t, TASK_WOKEN_INIT);
p->feconn++; /* beconn will be increased later */
if (p->feconn > p->feconn_max)