Mercurial > hg > xemacs-beta
comparison src/ntproc.c @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | 727739f917cb |
children | ca9a9ec9c1c1 |
comparison
equal
deleted
inserted
replaced
271:c7b7086b0a39 | 272:c5d627a313b1 |
---|---|
117 child_process *cp; | 117 child_process *cp; |
118 DWORD id; | 118 DWORD id; |
119 | 119 |
120 for (cp = child_procs+(child_proc_count-1); cp >= child_procs; cp--) | 120 for (cp = child_procs+(child_proc_count-1); cp >= child_procs; cp--) |
121 if (!CHILD_ACTIVE (cp)) | 121 if (!CHILD_ACTIVE (cp)) |
122 goto Initialise; | 122 goto Initialize; |
123 if (child_proc_count == MAX_CHILDREN) | 123 if (child_proc_count == MAX_CHILDREN) |
124 return NULL; | 124 return NULL; |
125 cp = &child_procs[child_proc_count++]; | 125 cp = &child_procs[child_proc_count++]; |
126 | 126 |
127 Initialise: | 127 Initialize: |
128 memset (cp, 0, sizeof(*cp)); | 128 xzero (*cp); |
129 cp->fd = -1; | 129 cp->fd = -1; |
130 cp->pid = -1; | 130 cp->pid = -1; |
131 cp->procinfo.hProcess = NULL; | 131 cp->procinfo.hProcess = NULL; |
132 cp->status = STATUS_READ_ERROR; | 132 cp->status = STATUS_READ_ERROR; |
133 | 133 |
282 SECURITY_DESCRIPTOR sec_desc; | 282 SECURITY_DESCRIPTOR sec_desc; |
283 char dir[ MAXPATHLEN ]; | 283 char dir[ MAXPATHLEN ]; |
284 | 284 |
285 if (cp == NULL) abort (); | 285 if (cp == NULL) abort (); |
286 | 286 |
287 memset (&start, 0, sizeof (start)); | 287 xzero (start); |
288 start.cb = sizeof (start); | 288 start.cb = sizeof (start); |
289 | 289 |
290 #ifdef HAVE_NTGUI | 290 #ifdef HAVE_NTGUI |
291 if (NILP (Vwin32_start_process_show_window)) | 291 if (NILP (Vwin32_start_process_show_window)) |
292 start.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW; | 292 start.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW; |