| 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]
|
| |
|
| |
|
|
|
|
|
|
| |
try-restart.
http://bugs.debian.org/545227
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
done (e.g. when taken up with 'once').
|
|
|
|
| |
not a fifo (thx Charlie Brady).
|
|
|
|
| |
open_* functions (thx David Reiss).
|
|
|
|
| |
Poumeyrol)
|
|
|
|
|
| |
* chpst.c, man/chpst.8: new option -b argv0: run prog with different
0th argument.
|
| |
|
| |
|
|
|
|
| |
in log/supervise/.
|
| |
|
|
|
|
| |
a slash.
|
| |
|
|
|
|
| |
signals (CHLD, CONT, INT).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
on AIX 5.2 ML1, AIX 5.3 ML5 (thx Daniel Clark).
|
| |
|
| |
|
|
|
|
| |
..., but request new source port for each log message sent through udp.
|
|
|
|
| |
...cleanup.
|
|
|
|
|
|
| |
* runit.c: fix arguments to wait_pid() after fork for reboot_system()
(thx Jan Kampe).
* man/runsv.8: suggest printf t instead of echo -n t.
|
|
|
|
|
|
|
|
| |
chpst -[u|U] :uid:gid...
* man/chpst.8: adapt; clarify that users and groups are looked up in
/etc/passwd and /etc/group only.
* sv.c: properly wait for a service to be restarted on 'restart';
support checks through -v for pause, cont, kill.
|
|
|
|
|
| |
but for stage 1 only; fork before initiating system halt or reboot,
the linux kernel calls do_exit(0) in kernel/sys.c (thx Jan Kampe).
|
|
|
|
|
|
|
| |
messages with sortable UTC timestamp YYYY-MM-DDTHH:MM:SS.xxxxx.
* runsv.c, runsv.8: give to arguments to ./finish: exit code and exit
status of ./run (mostly copied from pipe-tools' npt-supervise, thx
Laurent Bercot).
|
| |
|
|
|
|
|
|
|
|
| |
interrupted by signal, also on startup (thx Andras Korn); 1st rename
.t to .s, then remove .u.
* man/svlogd.8: adapt.
* svlogd.c: prepend optional timestamp to log messages sent through UDP,
as done for messages written to dir and to stderr.
|
|
|
|
|
| |
service.
* runsvdir.c: don't double-copy filedescriptor.
|
|
|
|
|
|
|
|
|
|
|
| |
the time of last modification, the inode, or the device has changed.
* sv.c: don't report success on 'sv start' if the service is in state
finish (thx Matthew R. Dempsky).
* svlogd.c: new config line p: optionally prefix each line written to
logs, stderr, or through udp; no longer skip empty lines (just
containing '\n'), old behavior can be restored with '-' in config.
* man/svlogd.8: document new p config line; adapt.
1.5.0.
|
|
|
|
|
|
| |
* src/uidgid.h: use uid_t, git_t (fix setting of multiple groups with
dietlibc, thx Tino Keitel)
1.4.1.
|