Commit 62e5b05d authored by Satoru Takeuchi's avatar Satoru Takeuchi Committed by Linus Torvalds

Better documentation for ERESTARTSYS

Add comment for errnos related to restart syscall to avoid the leakage of
them to user programs.
Signed-off-by: default avatarSatoru Takeuchi <>
Cc: Oleg Nesterov <>
Acked-by: default avatarRoland McGrath <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d7083174
......@@ -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 ERESTARTNOHAND 514 /* restart if no handler.. */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment