/* wakes up an applet when conditions have changed */
static inline void appctx_wakeup(struct appctx *appctx)
{
- ALREADY_CHECKED(appctx);
-
task_wakeup(appctx->t, TASK_WOKEN_OTHER);
}
{
struct channel *ic = si_ic(si);
- BUG_ON(cs_appctx(si->cs));
+ BUG_ON(!cs_appctx(si->cs));
/* If the applet wants to write and the channel is closed, it's a
* broken pipe and it must be reported.
{
struct channel *ic = si_ic(si);
- BUG_ON(cs_appctx(si->cs));
+ BUG_ON(!cs_appctx(si->cs));
si_rx_shut_blk(si);
if (ic->flags & CF_SHUTR)
struct channel *ic = si_ic(si);
struct channel *oc = si_oc(si);
- BUG_ON(cs_appctx(si->cs));
+ BUG_ON(!cs_appctx(si->cs));
oc->flags &= ~CF_SHUTW_NOW;
if (oc->flags & CF_SHUTW)
{
struct channel *ic = si_ic(si);
- BUG_ON(cs_appctx(si->cs));
+ BUG_ON(!cs_appctx(si->cs));
DPRINTF(stderr, "%s: si=%p, si->state=%d ic->flags=%08x oc->flags=%08x\n",
__FUNCTION__,
{
struct channel *oc = si_oc(si);
- BUG_ON(cs_appctx(si->cs));
+ BUG_ON(!cs_appctx(si->cs));
DPRINTF(stderr, "%s: si=%p, si->state=%d ic->flags=%08x oc->flags=%08x\n",
__FUNCTION__,