Various tweaks to make things run on Mac OS.
The main change is the use of pthread to implement ffork.
This commit is contained in:
parent
e182749a98
commit
a995e477ff
12 changed files with 84 additions and 12 deletions
|
|
@ -14,6 +14,7 @@ sysfatal(char *fmt, ...)
|
|||
vseprint(buf, buf+sizeof buf, fmt, arg);
|
||||
va_end(arg);
|
||||
|
||||
__fixargv0();
|
||||
fprint(2, "%s; %s\n", argv0 ? argv0 : "<prog>", buf);
|
||||
exits("fatal");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue