• Patch: Elm ME+ 2.5 PLalpha46 -> Elm ME+ 2.5 PLalpha47 [3/7] (4/7)

    From Kari Hurtta@21:1/5 to All on Sat Feb 10 14:44:54 2018
    [continued from previous message]

    switch (val) {
    case action_disable:
    --- 1623,1668 ----

    }
    #endif
    !
    if (0 == ret && cancel_delay && cd)
    schedule_cancel_timeout(cd);

    if (ret > 0) {
    ! for (pl = 0; pl < used_polls; pl++) {
    ! i = translate[pl];
    !
    ! DPRINT(Debug,20,(&Debug,
    ! "real_wait_poll: polls[%d] => action %d\n",
    ! pl,i));
    !
    ! if (i < 0 || i >= actions_count ||
    ! polls[pl].fd != actions[i].fd)
    ! panic("SCHEDULE PANIC",__FILE__,__LINE__,
    ! "real_wait_poll",
    ! "Bad translate table",0);
    !
    ! if (polls[pl].revents) {
    DPRINT(Debug,20,(&Debug,
    "real_wait_poll: polls[%d]: fd=%d revents=%d\n",
    ! pl,polls[pl].fd,polls[pl].revents));
    }
    if (!actions[i].busy) {
    actions[i].busy = 1;
    ! if (0 != (polls[pl].revents & (POLLIN|POLLHUP|POLLERR))) {
    enum action_status val;
    DPRINT(Debug,20,(&Debug,
    ! "real_wait_poll: running read_act for %d (actions[%d], polls[%d])\n",
    ! actions[i].fd,i,pl));
    val = actions[i].