summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3029741)
raw | patch | inline | side by side (parent: 3029741)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 4 Nov 2007 13:19:30 +0000 (14:19 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 4 Nov 2007 13:19:30 +0000 (14:19 +0100) |
src/exec.c | patch | blob | history |
diff --git a/src/exec.c b/src/exec.c
index d9f2d8ce26c60bfc9de60b45fe47a46dd65ac560..b5a3abbf2b210b3892f8c781d8b6963be8632350 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
/*
* Functions
*/
-static int exec_config (const char *key, const char *value)
+static int exec_config (const char *key, const char *value) /* {{{ */
{
if (strcasecmp ("Exec", key) == 0)
{
}
return (0);
-} /* int exec_config */
+} /* int exec_config }}} */
-static void exec_child (program_list_t *pl)
+static void exec_child (program_list_t *pl) /* {{{ */
{
int status;
int uid;
ERROR ("exec plugin: exec failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
exit (-1);
-} /* void exec_child */
+} /* void exec_child }}} */
-static int fork_child (program_list_t *pl)
+static int fork_child (program_list_t *pl) /* {{{ */
{
int fd_pipe[2];
int status;
close (fd_pipe[1]);
return (fd_pipe[0]);
-} /* int fork_child */
+} /* int fork_child }}} */
-static int parse_line (char *buffer)
+static int parse_line (char *buffer) /* {{{ */
{
char *fields[256];
int fields_num;
handle_putval (stdout, fields, fields_num + 1);
return (0);
-} /* int parse_line */
+} /* int parse_line }}} */
-static void *exec_read_one (void *arg)
+static void *exec_read_one (void *arg) /* {{{ */
{
program_list_t *pl = (program_list_t *) arg;
int fd;
pthread_exit ((void *) 0);
return (NULL);
-} /* void *exec_read_one */
+} /* void *exec_read_one }}} */
-static int exec_read (void)
+static int exec_read (void) /* {{{ */
{
program_list_t *pl;
} /* for (pl) */
return (0);
-} /* int exec_read */
+} /* int exec_read }}} */
-static int exec_shutdown (void)
+static int exec_shutdown (void) /* {{{ */
{
program_list_t *pl;
program_list_t *next;
pl_head = NULL;
return (0);
-} /* int exec_shutdown */
+} /* int exec_shutdown }}} */
void module_register (void)
{
} /* void module_register */
/*
- * vim:shiftwidth=2:softtabstop=2:tabstop=8
+ * vim:shiftwidth=2:softtabstop=2:tabstop=8:fdm=marker
*/