| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
found by using clang 18 with CFLAGS: -Wall
link of debian's patches is: https://salsa.debian.org/debian/runit/-/tree/master/debian/patches
0016-fix-warning-for-undefined-operation-on-sequence-poin.patch
chpst.c:312:33: warning: unsequenced modification and access to 'subgetoptarg' [-Wunsequenced]
312 | if (optarg[scan_ulong(++optarg, &ul)]) usage(); nicelvl =ul;
| ~~~~~~ ^
gcc report:
chpst.c:312:33: warning: operation on 'subgetoptarg' may be undefined [-Wsequence-point]
|
| |
|
|
|
|
| |
http://skarnet.org/cgi-bin/archive.cgi?2:mss:1163:201602:gpiglpbjdemlioaeabbn
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
man 3 usleep:
POSIX.1-2001 declares it obsolete, suggesting nanosleep(2) instead. Removed in POSIX.1-2008.
we use a feature test macro to select usleep or naosleep, while debian's patch replace
usleep with nanosleep.
links of debian's patches is: https://salsa.debian.org/debian/runit/-/tree/master/debian/patches
0017-fix-replace-obsolete-usleep-with-nanosleep.patch
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. fix error in runsv for log/finish:
Log ./finish script is not actually invoked. It is not clear, whether this
limitation is worth lifting.
2. add options -t and -V to chpst man page; ignore -r since it's obsolete.
3. clarify in runsv.8 manpage how signal override works with control/dx
copied from debian's patch:
0009-fix-error-in-manpage.patch
0027-Clarify-runsv-8-control-dx.patch
0027-Add-missing-options-to-chpst-manpage.patch
links of debian's patches is: https://salsa.debian.org/debian/runit/-/tree/master/debian/patches
|
| |
|
|
|
|
| |
https://bugs.debian.org/695281
|
|
|
|
| |
Thx Leah Neukirchen.
|
|
|
|
|
| |
Don't pass int32_t to time(), thx Lorenzo Beretta,
https://bugs.debian.org/754849
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
found by using clang 18 with CFLAGS: -Wall
since gcc 14, certain warnings (including this one, gcc report as
-Wincompatible-pointer-types) are now errors, see
https://gcc.gnu.org/gcc-14/porting_to.html
link of debian's patches is: https://salsa.debian.org/debian/runit/-/tree/master/debian/patches
0014-fix-implicit-declarations-incompatible-types-argv-ty.patch
pathexec_run.c: warning: passing 'const char *const *' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
19 | execve(file,argv,envp);
| ^~~~ ^~~~
36 | execve(tmp.s,argv,envp);
| ^~~~ ^~~~
pathexec_env.c:67:21: warning: passing 'const char *const *' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
67 | pathexec_run(file,argv,e);
| ^~~~
pathexec_env.c:67:26: warning: passing 'const char **' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
67 | pathexec_run(file,argv,e);
| ^
runsvdir.c:74:25: warning: passing 'const char *[3]' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
74 | pathexec_run(*prog, prog, (const char* const*)environ);
| ^~~~
runsvdir.c:74:31: warning: passing 'const char *const *' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
74 | pathexec_run(*prog, prog, (const char* const*)environ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
found by using clang 18 with CFLAGS: -Wall
link of debian's patches is: https://salsa.debian.org/debian/runit/-/tree/master/debian/patches
0029-fix-ftbfs-with-gcc14.patch
x86cpuid.c:7:3: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
7 | exit(1);
| ^
x86cpuid.c:34:7: error: call to undeclared function 'putchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
34 | putchar(c);
| ^
x86cpuid.c:37:3: error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
37 | printf("-%08x-%08x\n",y[0],y[3]);
| ^
x86cpuid.c:37:25: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
37 | printf("-%08x-%08x\n",y[0],y[3]);
| ~~~~ ^~~~
| %08lx
x86cpuid.c:37:30: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
37 | printf("-%08x-%08x\n",y[0],y[3]);
| ~~~~ ^~~~
| %08lx
gcc report:
x86cpuid.c:7:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
x86cpuid.c:7:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
x86cpuid.c:34:7: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
x86cpuid.c:37:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
x86cpuid.c:37:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
x86cpuid.c:37:15: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=]
x86cpuid.c:37:20: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=]
|
| |
|
|
|
|
|
|
|
|
|
|
| |
found by using clang 18 with CFLAGS: -Wall
error: call to undeclared function '...'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
chpst.c: setgroups
pathexec_run.c: execve
prot.c: setgroups, setgid, setuid
seek_set.c: lseek
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If don't fix, the feature test will generate undesired .h which will be used
in later compilation, some will cause build failed.
see *.h{1,2} for details, run following cmd to see difference:
diff -uprN <(more *.h1|sed 's:\.h1$:.h:g') <(more *.h2|sed 's:\.h2$:.h:g')
found by using clang 18 with CFLAGS: -Wall
link of debian's patches is: https://salsa.debian.org/debian/runit/-/tree/master/debian/patches
0029-fix-ftbfs-with-gcc14.patch
chkshsgr.c trycpp.c trypoll.c tryshsgr.c tryulong64.c:
error: call to undeclared function '...'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
functions are: _exit, exit, getgroups, printf, setgroups
tryflock.c trysgact.c trysgprm.c trywaitp.c:
error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
|
| |
|
| |
|
|
|
|
| |
from Scratch, Finnix, VServer.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
try-restart.
http://bugs.debian.org/545227
|
|
|
|
|
|
| |
(thx Jonathan Nieder).
See https://bugs.debian.org/627574
|
|
|
|
|
|
|
| |
Courrèges-Anglas).
Patch fetched from the OpenBSD ports tree
http://openbsd.cs.toronto.edu/cgi-bin/cvsweb/ports/sysutils/runit/patches/patch-src_fmt_ptime_c?rev=1.1&content-type=text/x-cvsweb-markup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
status of multiple service directories.
Thx Jamie Heilman, https://bugs.debian.org/715512:
> Given two service directories:
>
> # ls testapp1
> run supervise
> # ls testapp2
> log run supervise
>
> where testapp1 is running, and testapp2 isn't:
>
> # sv status ./testapp1
> run: ./testapp1: (pid 3682) 408178s
> # sv status ./testapp2
> fail: ./testapp2: runsv not running
> # sv status ./testapp1 ./testapp2
> run: ./testapp1: (pid 3682) 408184s
> fail: ./testapp2: runsv not running
> run: ./testapp2: (pid 3682) 408184sfail: ./testapp2: runsv not running
|
|
|
|
| |
runit (thx Kevin Berry).
|
|
|
|
| |
use runit as default init scheme (thx Matias A. Fonzo).
|
|
|
|
| |
(thx Gabriel de Perthuis).
|
|
|
|
| |
that include runit (thx Debayan Banerjee).
|
| |
|
| |
|
| |
|
|
|
|
| |
done (e.g. when taken up with 'once').
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
interface.
|