search for: do_event_handl

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

Did you mean: do_event_handler
2014 Jan 27
1
Re: [PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
...perror ("execvp"); > + _exit (EXIT_FAILURE); > +} > + > +/* Execute a command in the background, sending output to a pipe. */ > +static int > +bg_command (char **argv, char **pipef) > +{ Reading this and other similar implementations, for example: - fish/events.c, do_event_handler - fish/fish.c, execute_and_inline and issue_command (which has a comment regarding pipe commands) - src/command.c, run_command - src/launch-direct.c, launch_direct - src/launch-uml.c, launch_uml - daemon/guestfsd.c, commandrf (maybe, since it is in the appliance); other popen usages in daemon...
2014 Jan 27
2
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
I thought it would be easy to rewrite virt-make-fs in C. Two days later ... The Perl program uses a lot of external commands, which makes it pretty tedious to implement in C. Rich.
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...EXIT_FAILURE); + } snprintf (buf, len, "PS1='mount-local-shell> ' %s --norc -i", shell); r = system (buf); } else diff --git a/fish/events.c b/fish/events.c index 667efdc..0349c55 100644 --- a/fish/events.c +++ b/fish/events.c @@ -99,12 +99,18 @@ do_event_handler (guestfs_h *g, const uint64_t *array, size_t array_len) { pid_t pid; - const char *argv[8 + array_len]; + CLEANUP_FREE const char **argv = NULL; const char *shell; struct entry *entry = opaque; size_t i, j; char *s; + argv = malloc (sizeof (const char *) *...