diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-20 22:20:37 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-20 22:20:37 +0300 |
commit | 0ab372585f57c80202a432bd757d52088de80850 (patch) | |
tree | d00e04f3962bd1dc3c1023af368396841c0a5b7c /extmod/misc.h | |
parent | 3a29db8e58d963747697025e847444430c9f8b9e (diff) |
extmod/moduos_dupterm: Dumpterm subsystem is responsible for closing stream.
Make dupterm subsystem close a term stream object when EOF or error occurs.
There's no other party than dupterm itself in a better position to do this,
and this is required to properly reclaim stream resources, especially if
multiple dupterm sessions may be established (e.g. as networking
connections).
Diffstat (limited to 'extmod/misc.h')
-rw-r--r-- | extmod/misc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extmod/misc.h b/extmod/misc.h index 39bfd5ecb..634ea924d 100644 --- a/extmod/misc.h +++ b/extmod/misc.h @@ -34,6 +34,7 @@ MP_DECLARE_CONST_FUN_OBJ(mp_uos_dupterm_obj); #if MICROPY_PY_OS_DUPTERM void mp_uos_dupterm_tx_strn(const char *str, size_t len); +void mp_uos_deactivate(const char *msg, mp_obj_t exc); #else #define mp_uos_dupterm_tx_strn(s, l) #endif |