forked from espressif/esp-modbus
Current lwip implementation does not support deleting a task which is actively waiting on `select()` or `poll()` API. Therefore we have to make sure that `select()` exits to deallocate its internal callback before deleting the task. This is achieved by a shutdown semaphore which informs the client once the `select()` exitted. fix slave * Original commit: espressif/esp-idf@898cac0061