Files
termux-packages/packages/valkey/setproctitle.patch
termux-pacman-bot 012d2cee96 bump(main/valkey): 9.0.1
- Drop `do-not-install-hiredis-files.patch` - no longer necessary

- Rebase `pthread_cancel.patch` - removing new instance of `pthread_testcancel()` appears to be OK, because in this package, `pthread_kill()` is used to immediately kill all the threads it is used on, eliminating the need for `pthread_testcancel()` (as opposed to, for example, `nwipe`, where `pthread_testcancel()` is replaced differently because `pthread_cancel()` is replaced differently)

- Rebase `setproctitle.patch`
2026-01-03 06:06:33 +00:00

21 lines
631 B
Diff

--- ./src/setproctitle.c.orig 2021-05-01 14:35:04.385944179 +0000
+++ ./src/setproctitle.c 2021-05-01 14:36:32.979189534 +0000
@@ -190,7 +190,7 @@ static int spt_copyargs(int argc, char *argv[]) {
*/
void spt_init(int argc, char *argv[]) {
char **envp = environ;
- char *base, *end, *nul, *tmp;
+ char *base, *end, *nul;
int i, error, envc;
if (!(base = argv[0]))
@@ -232,7 +232,7 @@ void spt_init(int argc, char *argv[]) {
if (!(SPT.arg0 = strdup(argv[0])))
goto syerr;
-#if defined __linux__
+#if defined __linux__ && !defined __ANDROID__
if (!(tmp = strdup(program_invocation_name)))
goto syerr;