diff options
| author | forsyth <forsyth@vitanuova.com> | 2011-08-19 13:07:05 -0400 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2011-08-19 13:07:05 -0400 |
| commit | 42c934e1cbff05e8f5b5ba58cfde3c1f5a9f73ab (patch) | |
| tree | ec04d5209002f37f48f7f8ded34e628e2cb136cc | |
| parent | 6b2e32351192dd10dd3d671e2b61608c692507e6 (diff) | |
20110819-1306
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | appl/cmd/mk/mk.b | 10 | ||||
| -rw-r--r-- | dis/mk.dis | bin | 58450 -> 58480 bytes | |||
| -rw-r--r-- | include/version.h | 2 |
4 files changed, 5 insertions, 9 deletions
@@ -1,3 +1,5 @@ +20110819 + appl/cmd/mk/mk.b - use raise "fail:..." for exit status [issue 268] 20110629 change x86 getcallerpc to avoid use of %ebp [issue 266] change type of getcallerpc to uintptr from ulong diff --git a/appl/cmd/mk/mk.b b/appl/cmd/mk/mk.b index cf705cf0..82c97bf5 100644 --- a/appl/cmd/mk/mk.b +++ b/appl/cmd/mk/mk.b @@ -368,7 +368,6 @@ main(argc: int, argv: array of array of byte) if(uflag) prusage(); bout.flush(); - exit; } badusage() @@ -575,7 +574,7 @@ execl(sh: string, name: string, a1: string, a2: string, a3: string, a4: string) c := load Command sh; if(c == nil){ sys->fprint(sys->fildes(2), "x %s: %r\n", sh); - return; + raise "fail:execl"; } argl: list of string; if(a4 != nil) @@ -3232,8 +3231,6 @@ fork1(c1: chan of int, args: array of byte, cmd: array of byte, buf: ref Bufbloc else execl(shell, shellname, argss, nil, nil, nil); exit; - # perror(shell); - # exits("exec"); } } } @@ -3260,7 +3257,6 @@ fork2(c2: chan of int, cmd: array of byte, in: array of ref Sys->FD, out: array } in[1] = nil; exit; - # exits(nil); } } @@ -3317,8 +3313,6 @@ fork3(c3: chan of int, cmd: array of byte, e: array of Envy, fd: array of ref Sy else execl(shell, shellname, "-c", cmds, nil, nil); exit; - # perror(shell); - # exits("exec"); } } @@ -3351,7 +3345,7 @@ Exit() while(wait().t0 >= 0) ; bout.flush(); - exit; + raise "fail:error"; } nnote: int; Binary files differdiff --git a/include/version.h b/include/version.h index db8015a9..8e004e56 100644 --- a/include/version.h +++ b/include/version.h @@ -1 +1 @@ -#define VERSION "Fourth Edition (20110629)" +#define VERSION "Fourth Edition (20110819)" |
