Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/runit/sv.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/runit/sv.c
r3232 r3621 152 152 153 153 /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */ 154 /* TODO: depends on runit_lib.c - review and reduce/eliminate */ 154 155 //config:config SV 156 //config: bool "sv" 157 //config: default y 158 //config: help 159 //config: sv reports the current status and controls the state of services 160 //config: monitored by the runsv supervisor. 161 //config: 162 //config:config SV_DEFAULT_SERVICE_DIR 163 //config: string "Default directory for services" 164 //config: default "/var/service" 165 //config: depends on SV 166 //config: help 167 //config: Default directory for services. 168 //config: Defaults to "/var/service" 169 170 //applet:IF_SV(APPLET(sv, BB_DIR_USR_BIN, BB_SUID_DROP)) 171 172 //kbuild:lib-$(CONFIG_SV) += sv.o 155 173 156 174 //usage:#define sv_trivial_usage … … 170 188 //usage: "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" 171 189 172 #include <sys/poll.h>173 190 #include <sys/file.h> 174 191 #include "libbb.h" 192 #include "common_bufsiz.h" 175 193 #include "runit_lib.h" 176 194 … … 183 201 svstatus_t svstatus; 184 202 } FIX_ALIASING; 185 #define G (*(struct globals*) &bb_common_bufsiz1)203 #define G (*(struct globals*)bb_common_bufsiz1) 186 204 #define acts (G.acts ) 187 205 #define service (G.service ) … … 190 208 #define tnow (G.tnow ) 191 209 #define svstatus (G.svstatus ) 192 #define INIT_G() do { } while (0)210 #define INIT_G() do { setup_common_bufsiz(); } while (0) 193 211 194 212
Note:
See TracChangeset
for help on using the changeset viewer.