mirror of
https://github.com/RGBCube/serenity
synced 2025-07-14 19:07:35 +00:00

- 1.8.2 for now, newer versions need high-res timestamp file APIs which serenity doesn't have yet - pselect() instead of ppoll() for now, same reason (depends on #2609) - no good default for -j yet (see nproc.patch) - `-l` probably doesn't work yet (see loadavg.patch), but I've never used that anyways - some minor include patches that I've also sent upstream Other than that, this seems to work reasonably well. It currently produces some spam on stdout from probably the shell.
24 lines
490 B
Diff
24 lines
490 B
Diff
diff --git a/src/subprocess-posix.cc b/src/subprocess-posix.cc
|
|
index 1de22c3..02b1b7e 100644
|
|
--- a/src/subprocess-posix.cc
|
|
+++ b/src/subprocess-posix.cc
|
|
@@ -17,13 +17,18 @@
|
|
#include <assert.h>
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
-#include <poll.h>
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <sys/wait.h>
|
|
#include <spawn.h>
|
|
|
|
+#if defined(USE_PPOLL)
|
|
+#include <poll.h>
|
|
+#else
|
|
+#include <sys/select.h>
|
|
+#endif
|
|
+
|
|
extern char** environ;
|
|
|
|
#include "util.h"
|