aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-03-05 21:38:34 +0000
committerRichard M. Stallman1994-03-05 21:38:34 +0000
commit0bc439a07665479d6e918474839c562c4e92f9e5 (patch)
tree7c58274ae555e514615ef9b7de9ec1f025fd29cc /src
parent3f872b675a1c21775d763c0359fed2cb13756daa (diff)
downloademacs-0bc439a07665479d6e918474839c562c4e92f9e5.tar.gz
emacs-0bc439a07665479d6e918474839c562c4e92f9e5.zip
Include config.h, lisp.h, buffer.h, process.h, commands.h, errno.h and file.h.
(write_to_vms_process): Change =- to -=. (create_process): Set status field instead of obsolete flags field. (child_sig): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/vmsproc.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/vmsproc.c b/src/vmsproc.c
index 777ae61876e..f6e29f472a6 100644
--- a/src/vmsproc.c
+++ b/src/vmsproc.c
@@ -26,11 +26,20 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
26 23 is the timer event flag 26 23 is the timer event flag
27 24-31 are reserved by VMS 27 24-31 are reserved by VMS
28*/ 28*/
29#include <config.h>
29#include <ssdef.h> 30#include <ssdef.h>
30#include <iodef.h> 31#include <iodef.h>
31#include <dvidef.h> 32#include <dvidef.h>
32#include <clidef.h> 33#include <clidef.h>
33#include "vmsproc.h" 34#include "vmsproc.h"
35#include "lisp.h"
36#include "buffer.h"
37#include <file.h>
38#include "process.h"
39#include "commands.h"
40#include <errno.h>
41extern Lisp_Object call_process_cleanup ();
42
34 43
35#define KEYBOARD_EVENT_FLAG 1 44#define KEYBOARD_EVENT_FLAG 1
36#define TIMER_EVENT_FLAG 23 45#define TIMER_EVENT_FLAG 23
@@ -241,7 +250,7 @@ write_to_vms_process (vs, buf, len)
241 error ("Could not write to subprocess: %x", status); 250 error ("Could not write to subprocess: %x", status);
242 return (0); 251 return (0);
243 } 252 }
244 len =- out; 253 len -= out;
245 } 254 }
246 return (1); 255 return (1);
247} 256}
@@ -719,7 +728,7 @@ create_process (process, new_argv)
719 chan_process[inchannel] = process; 728 chan_process[inchannel] = process;
720 XFASTINT (XPROCESS (process)->infd) = inchannel; 729 XFASTINT (XPROCESS (process)->infd) = inchannel;
721 XFASTINT (XPROCESS (process)->outfd) = outchannel; 730 XFASTINT (XPROCESS (process)->outfd) = outchannel;
722 XFASTINT (XPROCESS (process)->flags) = RUNNING; 731 XPROCESS (process)->status = Qrun
723 732
724 /* Delay interrupts until we have a chance to store 733 /* Delay interrupts until we have a chance to store
725 the new fork's pid in its process structure */ 734 the new fork's pid in its process structure */
@@ -759,10 +768,7 @@ child_sig (vs)
759 if (XSYMBOL (tail) == XSYMBOL (Qnil)) 768 if (XSYMBOL (tail) == XSYMBOL (Qnil))
760 return; 769 return;
761 770
762 child_changed++; 771 p->status = Fcons (Qexit, Fcons (make_number (vs->exitStatus), Qnil))
763 XFASTINT (p->flags) = EXITED | CHANGED;
764 /* Truncate the exit status to 24 bits so that it fits in a FASTINT */
765 XFASTINT (p->reason) = (vs->exitStatus) & 0xffffff;
766} 772}
767 773
768syms_of_vmsproc () 774syms_of_vmsproc ()