Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/runit/sv.c


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/runit/sv.c

    r3232 r3621  
    152152
    153153/* 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
    155173
    156174//usage:#define sv_trivial_usage
     
    170188//usage:       "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service"
    171189
    172 #include <sys/poll.h>
    173190#include <sys/file.h>
    174191#include "libbb.h"
     192#include "common_bufsiz.h"
    175193#include "runit_lib.h"
    176194
     
    183201    svstatus_t svstatus;
    184202} FIX_ALIASING;
    185 #define G (*(struct globals*)&bb_common_bufsiz1)
     203#define G (*(struct globals*)bb_common_bufsiz1)
    186204#define acts         (G.acts        )
    187205#define service      (G.service     )
     
    190208#define tnow         (G.tnow        )
    191209#define svstatus     (G.svstatus    )
    192 #define INIT_G() do { } while (0)
     210#define INIT_G() do { setup_common_bufsiz(); } while (0)
    193211
    194212
Note: See TracChangeset for help on using the changeset viewer.