diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-19 05:50:33 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-19 05:50:33 +0100 |
commit | 6b2e5e0d91823c2a6ce5a5cb12ae3d00b82adae7 (patch) | |
tree | 30abf5fa5e54f2a079e53228083cf4d230efc102 /libpthread/signal/TODO | |
parent | 93ba48b6534f44c41f5739505dc9943d760a1867 (diff) | |
parent | f115339ad63bfb0005bc3d1ebfb05e1a0aecc0db (diff) |
Merge branch 'upstream-merged' of git.debian.org:/git/pkg-hurd/hurd into upstream-merged
Diffstat (limited to 'libpthread/signal/TODO')
-rw-r--r-- | libpthread/signal/TODO | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libpthread/signal/TODO b/libpthread/signal/TODO new file mode 100644 index 00000000..1148abb3 --- /dev/null +++ b/libpthread/signal/TODO @@ -0,0 +1,29 @@ +Unimplemented Functionality +--------------------------- + +We don't support interruptible functions. That is, if a signal is +delivered when a thread is in e.g. the write system call, then the +write function should be interrupted and return EINTR when the signal +handler is finished. To realize this behavior, we could have a thread +local interruptible flag and a setjmp buffer. A function that is +interruptible would fill the jump buffer and set the interruptible +flag. If a signal comes in and the interruptible flag is set, rather +than resuming the thread, we longjmp to the buffer. + +If a signal action has set the SA_SIGINFO, the third argument must be +a pointer to a ucontext describing the thread's interrupted state; +this implementation passes NULL. This isn't as bad as it sounds as +the the ucontext family of functions are marked obsolete in SUSv3 with +the advisory that any use of them should be replaced by the use of +pthread functionality (cf. makecontext rationale). + +stop and continue signals are not implemented (as we need to stop all +threads, this requires being in bed with libpthread). + +Implementation is not yet cancellation-safe. + +There are not even stubs for sighold, sigingore, sigpause, sigrelse, +however, according to posix: "Use of any of these functions is +unspecified in a multi-threaded process." + +Implement sigtimedwait, sigqueue.
\ No newline at end of file |