aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-01-02 13:30:48 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-01-02 13:30:48 +0200
commit1dbc4412111b6f7b4d61c1f1c2ba2a8d9a1c0367 (patch)
treef0a9b6c69558a7671ebdd96330dbf28460e6ff0a /src/pies.h
parenta37a83f6143e672a71ee4436fa24aaa2f9c81877 (diff)
downloadpies-1dbc4412111b6f7b4d61c1f1c2ba2a8d9a1c0367.tar.gz
pies-1dbc4412111b6f7b4d61c1f1c2ba2a8d9a1c0367.tar.bz2
New keyword "siggroup" + bugfix.
* src/pies.c (str_to_cf): New keyword "siggroup". * src/pies.h (CF_SIGGROUP): New constant. * src/progman.c (prog_start): Call setsid in child. (check_stopping): If CF_SIGGROUP, send signal to the process group. (prog_stop): If CF_SIGGROUP, send signal to the process group. (send_msg,run_command): Call setsid in child. (progman_cleanup): Bugfix: check if prog->v.p.cclass is not NULL (it can be, for UDP services).
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/pies.h b/src/pies.h
index 25db08a..d78d6d1 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -140,19 +140,20 @@ enum pies_comp_mode
pies_comp_pass_fd
};
-#define CF_DISABLED 0x01 /* The componenet is disabled */
-#define CF_PRECIOUS 0x02 /* The component is precious (should not
- be disabled) */
-#define CF_WAIT 0x04 /* Wait for the component instance to
- terminate. */
-#define CF_TCPMUX 0x08 /* A plain TCPMUX service */
-#define CF_TCPMUXPLUS 0x10 /* A TCPMUX-plus service, i.e. pies
- must emit a '+' response before starting
- it */
-#define CF_INTERNAL 0x20 /* An internal inetd service */
-#define CF_SOCKENV 0x40 /* Component wants socket information in
- the environment */
-#define CF_RESOLVE 0x80 /* Resolve IP addresses */
+#define CF_DISABLED 0x001 /* The componenet is disabled */
+#define CF_PRECIOUS 0x002 /* The component is precious (should not
+ be disabled) */
+#define CF_WAIT 0x004 /* Wait for the component instance to
+ terminate. */
+#define CF_TCPMUX 0x008 /* A plain TCPMUX service */
+#define CF_TCPMUXPLUS 0x010 /* A TCPMUX-plus service, i.e. pies
+ must emit a '+' response before starting
+ it */
+#define CF_INTERNAL 0x020 /* An internal inetd service */
+#define CF_SOCKENV 0x040 /* Component wants socket information in
+ the environment */
+#define CF_RESOLVE 0x080 /* Resolve IP addresses */
+#define CF_SIGGROUP 0x100 /* Send signals to the process group */
#define ISCF_TCPMUX(f) ((f) & (CF_TCPMUX | CF_TCPMUXPLUS))

Return to:

Send suggestions and report system problems to the System administrator.