diff options
author | Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> | 2007-06-01 09:47:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-01 17:18:29 +0200 |
commit | 62e5b05db6cd5dd9cf9614cc5d2d0702c1e339bb (patch) | |
tree | bd1800cc229a196cb36c90db8432577f5421c060 /include | |
parent | ALPHA: misc fixes (diff) | |
download | linux-62e5b05db6cd5dd9cf9614cc5d2d0702c1e339bb.tar.xz linux-62e5b05db6cd5dd9cf9614cc5d2d0702c1e339bb.zip |
Better documentation for ERESTARTSYS
Add comment for errnos related to restart syscall to avoid the leakage of
them to user programs.
Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/errno.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/errno.h b/include/linux/errno.h index d90b80f9b28c..46685832ed99 100644 --- a/include/linux/errno.h +++ b/include/linux/errno.h @@ -5,7 +5,12 @@ #ifdef __KERNEL__ -/* Should never be seen by user programs */ +/* + * These should never be seen by user programs. To return one of ERESTART* + * codes, signal_pending() MUST be set. Note that ptrace can observe these + * at syscall exit tracing, but they will never be left for the debugged user + * process to see. + */ #define ERESTARTSYS 512 #define ERESTARTNOINTR 513 #define ERESTARTNOHAND 514 /* restart if no handler.. */ |