about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2017-08-15 20:49:23 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2017-08-15 20:49:23 +0100
commitddb86759012992fa6471bd738f906a4ed434b69f (patch)
tree2400c5e08f28e9a6295ff0bf8005ebf849083583 /Src/zsh.h
parent74aff4106a4272d86c637c472a04efd46bbec07e (diff)
downloadzsh-ddb86759012992fa6471bd738f906a4ed434b69f.tar.gz
zsh-ddb86759012992fa6471bd738f906a4ed434b69f.tar.xz
zsh-ddb86759012992fa6471bd738f906a4ed434b69f.zip
posted but has not shown up: fix fd problem in subshell.
Record fd's that have been saved in fdtable and if the shell
forks close them as they will never be restored.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index ccd11db3d..91e8d7f8c 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -456,6 +456,18 @@ enum {
 #define FDT_PROC_SUBST		7
 #endif
 
+/*
+ * Mask to get the basic FDT type.
+ */
+#define FDT_TYPE_MASK		15
+
+/*
+ * Bit flag that fd is saved for later restoration.
+ * Currently this is only use with FDT_INTERNAL.  We use this fact so as
+ * not to have to mask checks against other types.
+ */
+#define FDT_SAVED_MASK		16
+
 /* Flags for input stack */
 #define INP_FREE      (1<<0)	/* current buffer can be free'd            */
 #define INP_ALIAS     (1<<1)	/* expanding alias or history              */