aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
authorJoakim Verona2013-08-12 12:29:06 +0200
committerJoakim Verona2013-08-12 12:29:06 +0200
commit5ff84f8a17c73bf63cc7532e14149380d9f83b3f (patch)
tree501ac3b99a49aaa25adedc516bb4ea7a34c22a5c /src/process.h
parentc39e73975f7371a6458cd63967d39ba77a1e871a (diff)
parent7a67e06b99a85ae700a7ccc75468397d53af59ed (diff)
downloademacs-5ff84f8a17c73bf63cc7532e14149380d9f83b3f.tar.gz
emacs-5ff84f8a17c73bf63cc7532e14149380d9f83b3f.zip
merge from trunk
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/process.h b/src/process.h
index 8ae33aebf39..b312f7f2425 100644
--- a/src/process.h
+++ b/src/process.h
@@ -31,6 +31,11 @@ INLINE_HEADER_BEGIN
31# define PROCESS_INLINE INLINE 31# define PROCESS_INLINE INLINE
32#endif 32#endif
33 33
34/* Bound on number of file descriptors opened on behalf of a process,
35 that need to be closed. */
36
37enum { PROCESS_OPEN_FDS = 6 };
38
34/* This structure records information about a subprocess 39/* This structure records information about a subprocess
35 or network connection. */ 40 or network connection. */
36 41
@@ -115,6 +120,9 @@ struct Lisp_Process
115 int infd; 120 int infd;
116 /* Descriptor by which we write to this process */ 121 /* Descriptor by which we write to this process */
117 int outfd; 122 int outfd;
123 /* Descriptors that were created for this process and that need
124 closing. Unused entries are negative. */
125 int open_fd[PROCESS_OPEN_FDS];
118 /* Event-count of last event in which this process changed status. */ 126 /* Event-count of last event in which this process changed status. */
119 EMACS_INT tick; 127 EMACS_INT tick;
120 /* Event-count of last such event reported. */ 128 /* Event-count of last such event reported. */
@@ -210,13 +218,16 @@ enum
210 218
211extern void block_child_signal (void); 219extern void block_child_signal (void);
212extern void unblock_child_signal (void); 220extern void unblock_child_signal (void);
213extern void record_kill_process (struct Lisp_Process *); 221extern void record_kill_process (struct Lisp_Process *, Lisp_Object);
214 222
215/* Defined in process.c. */ 223/* Defined in sysdep.c. */
216 224
217extern Lisp_Object list_system_processes (void); 225extern Lisp_Object list_system_processes (void);
218extern Lisp_Object system_process_attributes (Lisp_Object); 226extern Lisp_Object system_process_attributes (Lisp_Object);
219 227
228/* Defined in process.c. */
229
230extern void record_deleted_pid (pid_t, Lisp_Object);
220extern void hold_keyboard_input (void); 231extern void hold_keyboard_input (void);
221extern void unhold_keyboard_input (void); 232extern void unhold_keyboard_input (void);
222extern bool kbd_on_hold_p (void); 233extern bool kbd_on_hold_p (void);