search for: pid_str

Displaying 3 results from an estimated 3 matches for "pid_str".

Did you mean: id_str
2017 Jan 31
0
[PATCH nbdkit] Add support for socket activation.
...= "/tmp/nbdkitXXXXXX/pid"; + +static pid_t pid = 0; + +static void +cleanup (void) +{ + if (pid > 0) + kill (pid, SIGTERM); + + unlink (pidpath); + unlink (sockpath); + rmdir (tmpdir); +} + +int +main (int argc, char *argv[]) +{ + int sock; + struct sockaddr_un addr; + char pid_str[16]; + size_t i, len; + char magic[8]; + + if (mkdtemp (tmpdir) == NULL) { + perror ("mkdtemp"); + exit (EXIT_FAILURE); + } + len = strlen (tmpdir); + memcpy (sockpath, tmpdir, len); + memcpy (pidpath, tmpdir, len); + + atexit (cleanup); + + /* Open the listening socket whi...
2017 Feb 03
5
[PATCH 0/5] Support socket activation in virt-p2v.
As the subject says, support socket activation in virt-p2v. I have added upstream support for socket activation to nbdkit already: https://github.com/libguestfs/nbdkit/commit/7ff39d028c6359f5c0925ed2cf4a2c4c751af2e4 I posted a patch for qemu-nbd, still waiting on more reviews for that one: https://www.mail-archive.com/qemu-devel@nongnu.org/msg427246.html I tested this against old and new qemu
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is time to remove it from libguestfs. [1] https://github.com/libguestfs/virt-p2v [2] http://download.libguestfs.org/virt-p2v/ Pino Toscano (2): Remove virt-p2v Remove remaining virt-p2v bits .gitignore | 4 - Makefile.am | 7 +- bash/Makefile.am