aboutsummaryrefslogtreecommitdiff
path: root/src/direvent.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-06-18 12:57:27 +0300
committerSergey Poznyakoff <gray@gnu.org>2016-06-18 13:01:21 +0300
commit83c72b3c8500c2f1ff43c557d80d4e5a7e7669f2 (patch)
tree1bc8e99921571a95ecd80d84345b9ecee62328d0 /src/direvent.h
parent8841fd300da4b47a0690dedde592216d638884a0 (diff)
downloaddirevent-83c72b3c8500c2f1ff43c557d80d4e5a7e7669f2.tar.gz
direvent-83c72b3c8500c2f1ff43c557d80d4e5a7e7669f2.tar.bz2
New option to invoke handlers via /bin/sh
* src/config.c (cb_option): New option 'shell'. * src/direvent.h (HF_SHELL): New flag. * src/progman.c (runcmd): Optionally run program via /bin/sh * NEWS: Mention new option. * doc/direvent.conf.5: Document the 'shell' option. * grecs: Update. * tests/shell.at: New test case. * tests/Makefile.am: Add new test. * tests/testsuite.at: Add new test.
Diffstat (limited to 'src/direvent.h')
-rw-r--r--src/direvent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/direvent.h b/src/direvent.h
index 07dfd0b..3ce4693 100644
--- a/src/direvent.h
+++ b/src/direvent.h
@@ -40,6 +40,7 @@
#define HF_NOWAIT 0x01 /* Don't wait for termination */
#define HF_STDOUT 0x02 /* Capture stdout */
#define HF_STDERR 0x04 /* Capture stderr */
+#define HF_SHELL 0x08 /* Call program via /bin/sh -c */
#ifndef DEFAULT_TIMEOUT
# define DEFAULT_TIMEOUT 5

Return to:

Send suggestions and report system problems to the System administrator.