search for: sact_sockpath

Displaying 4 results from an estimated 4 matches for "sact_sockpath".

Did you mean: sa_sockpath
2023 Feb 15
2
[libnbd PATCH v3 11/29] socket activation: fix error message upon asprintf() failure
...erator/states-connect-socket-activation.c b/generator/states-connect-socket-activation.c index 3b621b8be44f..c46a0bf5c0a3 100644 --- a/generator/states-connect-socket-activation.c +++ b/generator/states-connect-socket-activation.c @@ -127,7 +127,7 @@ CONNECT_SA.START: if (asprintf (&h->sact_sockpath, "%s/sock", h->sact_tmpdir) == -1) { SET_NEXT_STATE (%.DEAD); - set_error (errno, "strdup"); + set_error (errno, "asprintf"); return 0; }
2023 Mar 23
20
[libnbd PATCH v3 00/19] pass LISTEN_FDNAMES with systemd socket activation
V3 was here: <http://mid.mail-archive.com/20230215141158.2426855-1-lersek at redhat.com>. See the Notes section on each patch for the v4 updates. The series is nearly ready for merging: every patch has at least one R-b tag, except "socket activation: avoid manipulating the sign bit". The series builds, and passes "make check" and "make check-valgrind", at
2023 Mar 23
1
[libnbd PATCH v3 07/19] socket activation: replace execvp() call with fork-safe variant
...)nbd_internal_fork_safe_execvpe (&execvpe_ctx, &h->argv, env.ptr); nbd_internal_fork_safe_perror (h->argv.ptr[0]); if (errno == ENOENT) _exit (127); else _exit (126); } /* Parent -- we're done; commit. */ h->sact_tmpdir = tmpdir; h->sact_sockpath = sockpath; h->pid = pid; h->connaddrlen = sizeof addr; memcpy (&h->connaddr, &addr, h->connaddrlen); next = %^CONNECT.START; /* fall through, for releasing the temporaries */ empty_env: string_vector_empty (&env); +uninit_execvpe: + nbd_internal_...
2023 May 30
2
[libnbd PATCH v3 04/22] states: Prepare to send 64-bit requests
...ucceeds). For example, if we connected to the server with > systemd socket activation in this test, and (say) one of the pwrites > failed, then we'd leak the unix domain socket in the filesystem (from > the bind() in "generator/states-connect-socket-activation.c"). > "sact_sockpath" is unlinked in nbd_close(). > > (As written, this test should not be affected, because, according to > unix(7), unix domain sockets created with socketpair(2) are unnamed.) Pre-existing in other tests, but a good observation for a followup patch. -- Eric Blake, Principal Software...