Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c138b21c
Commit
c138b21c
authored
Feb 15, 2017
by
Damien George
Browse files
unix: Use mp_handle_pending() in time.sleep().
parent
6e74d24f
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/modtime.c
View file @
c138b21c
...
...
@@ -108,9 +108,7 @@ STATIC mp_obj_t mod_time_sleep(mp_obj_t arg) {
if
(
res
!=
-
1
||
errno
!=
EINTR
)
{
break
;
}
if
(
MP_STATE_VM
(
mp_pending_exception
)
!=
MP_OBJ_NULL
)
{
return
mp_const_none
;
}
mp_handle_pending
();
//printf("select: EINTR: %ld:%ld\n", tv.tv_sec, tv.tv_usec);
#else
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment