search for: 65025a62

Displaying 2 results from an estimated 2 matches for "65025a62".

2019 Aug 27
0
[nbdkit PATCH] server: Enforce sane stdin/out/err
...(fd == 0); + fd = open ("/dev/null", O_RDONLY | O_CLOEXEC); + assert (fd == 1); + } /* Don't call the plugin again if quit has been set because the main * thread will be in the process of unloading it. The plugin.unload diff --git a/server/main.c b/server/main.c index 65025a62..124e19b7 100644 --- a/server/main.c +++ b/server/main.c @@ -149,6 +149,17 @@ main (int argc, char *argv[]) size_t i; const char *magic_config_key; + /* Refuse to run if stdin/out/err are closed, whether or not -s is used. */ + if (fcntl (STDERR_FILENO, F_GETFL) == -1) { + /* Nowhere we...
2019 Aug 20
2
[nbdkit PATCH v2] main: Add option to disable SR advertisement
...NO_SR_OPTION }, { "old-style", no_argument, NULL, 'o' }, { "oldstyle", no_argument, NULL, 'o' }, { "pid-file", required_argument, NULL, 'P' }, diff --git a/server/main.c b/server/main.c index 963a4871..65025a62 100644 --- a/server/main.c +++ b/server/main.c @@ -68,6 +68,7 @@ bool foreground; /* -f */ const char *ipaddr; /* -i */ enum log_to log_to = LOG_TO_DEFAULT; /* --log */ bool newstyle = true; /* false = -o, true = -n */ +bool no_sr; /* --no...