when "run < abc" is given where "abc" doesn't exist the right thing happens
SCCS-vsn: usr.bin/pascal/pdx/process/runcont.c 1.4
SCCS-vsn: usr.bin/pascal/pdx/process/start.c 1.7
/* Copyright (c) 1982 Regents of the University of California */
/* Copyright (c) 1982 Regents of the University of California */
-static char sccsid[] = "@(#)runcont.c 1.3 %G%";
+static char sccsid[] = "@(#)runcont.c 1.4 %G%";
/*
* Execution management.
/*
* Execution management.
process = &pbuf;
initcache(process);
start(argv, infile, outfile);
process = &pbuf;
initcache(process);
start(argv, infile, outfile);
+ if (process->status != STOPPED) {
+ panic("could not start program");
+ }
curline = 0;
argv[argc] = NIL;
start(argv, infile, outfile);
curline = 0;
argv[argc] = NIL;
start(argv, infile, outfile);
- just_started = TRUE;
- isstopped = FALSE;
- cont();
+ if (process->status == STOPPED) {
+ just_started = TRUE;
+ isstopped = FALSE;
+ cont();
+ } else if (option('r')) {
+ panic("could not start program");
+ }
/* Copyright (c) 1982 Regents of the University of California */
/* Copyright (c) 1982 Regents of the University of California */
-static char sccsid[] = "@(#)start.c 1.6 %G%";
+static char sccsid[] = "@(#)start.c 1.7 %G%";
if (objsize != 0) {
addbp(lastaddr(), END_BP, NIL, NIL, NIL, 0);
}
if (objsize != 0) {
addbp(lastaddr(), END_BP, NIL, NIL, NIL, 0);
}
- } else {
- panic("could not start program");