diff options
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c index e91566994..e154cc6cc 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -134,11 +134,23 @@ | |||
134 | //config: default y | 134 | //config: default y |
135 | //config: depends on SHELL_ASH | 135 | //config: depends on SHELL_ASH |
136 | //config: | 136 | //config: |
137 | //config:config ASH_SLEEP | 137 | // |
138 | //config: bool "sleep builtin" | 138 | ////config:config ASH_SLEEP |
139 | //config: default y | 139 | ////config: bool "sleep builtin" |
140 | //config: depends on SHELL_ASH | 140 | ////config: default y |
141 | //config: | 141 | ////config: depends on SHELL_ASH |
142 | ////config: | ||
143 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
144 | //Disabled for now. Has a few annoying problems: | ||
145 | // * sleepcmd() -> sleep_main(), the parsing of bad arguments exits the shell. | ||
146 | // * sleep_for_duration() in sleep_main() has to be interruptible for | ||
147 | // ^C traps to work, which may be a problem for other users | ||
148 | // of sleep_for_duration(). | ||
149 | // * BUT, if sleep_for_duration() is interruptible, then SIGCHLD interrupts it | ||
150 | // as well (try "/bin/sleep 1 & sleep 10"). | ||
151 | // * sleep_main() must not allocate anything as ^C in ash longjmp's. | ||
152 | // (currently, allocations are only on error paths, in message printing). | ||
153 | // | ||
142 | //config:config ASH_HELP | 154 | //config:config ASH_HELP |
143 | //config: bool "help builtin" | 155 | //config: bool "help builtin" |
144 | //config: default y | 156 | //config: default y |