diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-04 14:28:16 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-04 14:28:16 +0200 |
commit | 49e6bf2db92d896a71d08eb364069ba50fa82781 (patch) | |
tree | b0940fde4d99a73e1a27c7ad0b610fe7e3f1be0c /NOFORK_NOEXEC.lst | |
parent | 3346b4afc5c81d53eae4e7fc7e12ebd6fa573a4e (diff) | |
download | busybox-w32-49e6bf2db92d896a71d08eb364069ba50fa82781.tar.gz busybox-w32-49e6bf2db92d896a71d08eb364069ba50fa82781.tar.bz2 busybox-w32-49e6bf2db92d896a71d08eb364069ba50fa82781.zip |
sheel: improve comments on signal handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'NOFORK_NOEXEC.lst')
-rw-r--r-- | NOFORK_NOEXEC.lst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst index 12ae1cd55..14019bf7d 100644 --- a/NOFORK_NOEXEC.lst +++ b/NOFORK_NOEXEC.lst | |||
@@ -4,10 +4,12 @@ Why can't be NOFORK: | |||
4 | interactive: may wait for user input, ^C has to work | 4 | interactive: may wait for user input, ^C has to work |
5 | spawner: "tool PROG ARGS" which changes program's environment - must fork | 5 | spawner: "tool PROG ARGS" which changes program's environment - must fork |
6 | changes state: e.g. environment, signal handlers | 6 | changes state: e.g. environment, signal handlers |
7 | alloc+xfunc: xmalloc, then xfunc - leaks memory if xfunc dies | ||
8 | open+xfunc: opens fd, then calls xfunc - fd is leaked if xfunc dies | ||
7 | runner: sometimes may run for long(ish) time, and/or works with network: | 9 | runner: sometimes may run for long(ish) time, and/or works with network: |
8 | ^C has to work (cat BIGFILE, chmod -R, ftpget, nc) | 10 | ^C has to work (cat BIGFILE, chmod -R, ftpget, nc) |
9 | 11 | ||
10 | "runners" can become eligible after hush is taught ^C to interrupt NOFORKs! | 12 | "runners" can become eligible after shell is taught ^C to interrupt NOFORKs! |
11 | 13 | ||
12 | Why can't be NOEXEC: | 14 | Why can't be NOEXEC: |
13 | suid: runs under different uid - must fork+exec | 15 | suid: runs under different uid - must fork+exec |