| commit | a995e477ffb4dd1184da87e9e46a9e57f3178c63 | [log] [tgz] |
|---|---|---|
| author | rsc <devnull@localhost> | Wed Oct 01 02:50:57 2003 +0000 |
| committer | rsc <devnull@localhost> | Wed Oct 01 02:50:57 2003 +0000 |
| tree | 5b2260becdfb1aaf8b67fd91223b7d214b7e9451 | |
| parent | e182749a982e415fba755bc1035c35da5c4fe606 [diff] [blame] |
Various tweaks to make things run on Mac OS. The main change is the use of pthread to implement ffork.
diff --git a/src/lib9/sysfatal.c b/src/lib9/sysfatal.c index f9ab698..33a533b 100644 --- a/src/lib9/sysfatal.c +++ b/src/lib9/sysfatal.c
@@ -14,6 +14,7 @@ vseprint(buf, buf+sizeof buf, fmt, arg); va_end(arg); + __fixargv0(); fprint(2, "%s; %s\n", argv0 ? argv0 : "<prog>", buf); exits("fatal"); }