mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-12-14 15:28:38 +00:00
adjtimex: make it NOFORK
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c8e29317e9
commit
ed7d118dd0
@ -39,7 +39,7 @@ acpid - daemon
|
||||
add-shell
|
||||
addgroup
|
||||
adduser
|
||||
adjtimex
|
||||
adjtimex - NOFORK
|
||||
ar - runner
|
||||
arch - NOFORK
|
||||
arp - complex, rare
|
||||
|
@ -18,7 +18,7 @@
|
||||
//config: Adjtimex reads and optionally sets adjustment parameters for
|
||||
//config: the Linux clock adjustment algorithm.
|
||||
|
||||
//applet:IF_ADJTIMEX(APPLET(adjtimex, BB_DIR_SBIN, BB_SUID_DROP))
|
||||
//applet:IF_ADJTIMEX(APPLET_NOFORK(adjtimex, adjtimex, BB_DIR_SBIN, BB_SUID_DROP, adjtimex))
|
||||
|
||||
//kbuild:lib-$(CONFIG_ADJTIMEX) += adjtimex.o
|
||||
|
||||
@ -116,6 +116,11 @@ int adjtimex_main(int argc UNUSED_PARAM, char **argv)
|
||||
txc.modes |= ADJ_TICK;
|
||||
}
|
||||
|
||||
/* It's NOFORK applet because the code is very simple:
|
||||
* just some printf. No opens, no allocs.
|
||||
* If you need to make it more complex, feel free to downgrade to NOEXEC
|
||||
*/
|
||||
|
||||
ret = adjtimex(&txc);
|
||||
if (ret < 0)
|
||||
bb_perror_nomsg_and_die();
|
||||
|
Loading…
Reference in New Issue
Block a user