bmarcot / vega

vega -- The Unix-like Operating System for micro-controllers (ARM Cortex-M4)
6 stars 1 forks source link

Syscall should be interruptible #21

Closed bmarcot closed 6 years ago

bmarcot commented 7 years ago

Blocking syscalls may be interrupted by a signal: "If a signal is delivered to a thread waiting for a mutex, upon return from the signal handler the thread shall resume waiting for the mutex as if it was not interrupted." http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_lock.html

http://lxr.free-electrons.com/source/kernel/locking/mutex.c#L564 http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_cond_wait.html http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html http://stackoverflow.com/a/3800915/1439701

bmarcot commented 6 years ago

Fixed.