mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 13:40:34 -04:00
Runit is a daemontools replacement with the following features: - Service supervision - Clean process state - Reliable logging facility - Fast system bootup and shutdown - Packaging friendly - Small code size This very experimental port comes with a complete suite of configuration files and services to replace init(8) and rc(8) with runit for initializing your system. Heavily inspired by Void Linux' init scripts. For usage instructions visit: https://people.freebsd.org/~tobik/runit-faster.html Some fixes applied to sysutils/runit: - Fix most compiler warnings - Fix bug where runit will only halt the system instead of powering it off - Pet rclint for runsvdir - Pet portlint and regenerate patches
28 lines
833 B
C
28 lines
833 B
C
--- src/pathexec_run.c.orig 2014-08-10 18:22:35 UTC
|
|
+++ src/pathexec_run.c
|
|
@@ -5,6 +5,7 @@
|
|
#include "str.h"
|
|
#include "env.h"
|
|
#include "pathexec.h"
|
|
+#include <unistd.h>
|
|
|
|
static stralloc tmp;
|
|
|
|
@@ -15,7 +16,7 @@ void pathexec_run(const char *file,const char * const
|
|
int savederrno;
|
|
|
|
if (file[str_chr(file,'/')]) {
|
|
- execve(file,argv,envp);
|
|
+ execve(file,(char *const *)argv,(char *const *)envp);
|
|
return;
|
|
}
|
|
|
|
@@ -32,7 +33,7 @@ void pathexec_run(const char *file,const char * const
|
|
if (!stralloc_cats(&tmp,file)) return;
|
|
if (!stralloc_0(&tmp)) return;
|
|
|
|
- execve(tmp.s,argv,envp);
|
|
+ execve(tmp.s,(char *const *)argv,(char * const *)envp);
|
|
if (errno != error_noent) {
|
|
savederrno = errno;
|
|
if ((errno != error_acces) && (errno != error_perm) && (errno != error_isdir)) return;
|