Skip to content

Commit

Permalink
Make some more fixes
Browse files Browse the repository at this point in the history
This change deletes mkfifo() so that GNU Make on Windows will work in
parallel mode using its pipe-based implementation. There's an example
called greenbean2 now, which shows how to build a scalable web server
for Windows with 10k+ threads. The accuracy of clock_nanosleep is now
significantly improved on Linux.
  • Loading branch information
jart committed Oct 9, 2023
1 parent 820c359 commit 3b4dbc9
Show file tree
Hide file tree
Showing 22 changed files with 871 additions and 331 deletions.
2 changes: 1 addition & 1 deletion examples/greenbean.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ int main(int argc, char *argv[]) {
// print cpu registers and backtrace on crash
// note that pledge'll makes backtraces worse
// you can press ctrl+\ to trigger backtraces
ShowCrashReports();
// ShowCrashReports();

// listen for ctrl-c, terminal close, and kill
struct sigaction sa = {.sa_handler = OnTerm};
Expand Down
Loading

0 comments on commit 3b4dbc9

Please sign in to comment.