summaryrefslogtreecommitdiff
path: root/src/autoplay/child_process.h
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-09-08 20:25:26 -0700
committerScott Gasch <[email protected]>2026-09-08 20:25:26 -0700
commitac1db917dc50e372806780bc0ab2cc0570d8ca54 (patch)
tree245f7f7d4538369da74f1f8641041915e4122f9e /src/autoplay/child_process.h
parent88a0787a7d19a5b4e19e540816f1d500e02dbfeb (diff)
Remove dead autoplay/autoplayer trees, land GNUmakefile/eval_tune companionsHEADmaster
- Remove autoplay/ and autoplayer/ entirely: old opponent-automation scrapers/harnesses (child_process.cc test scaffolding, compiled a.out binaries and a .dSYM bundle, saved book/position files, macOS ._-prefixed resource-fork cruft) that predate this repo's current tooling and were never referenced by anything still in use. - GNUmakefile: add DIAG_NO_QSEARCH_FUTILITY/CALIBRATE_QSEARCH_FUTILITY profile flags and testrecogn.o to the TEST=1 object list. Both are companions to already-committed work that never got their own build support committed: search.c's qsearch-futility calibration harness needs the two profile flags to be buildable at all, and testrecogn.c (added alongside the recogn.c bugfix, now committed here too) needs to be in TEST=1's OBJS to actually compile/link. - eval_tune/match_play.py, eval_tune/test_vs_head.sh: real fixes found and applied earlier this session -- match_play.py's opening-book leak (games weren't actually book-free), missing --hash/--cpus (games ran on the 64k-entry/single-cpu memset-zero defaults instead of this project's normal 256m/1cpu), a shared-logfile race across concurrent match workers, and a report-parsing deadlock on engine resignation. test_vs_head.sh reverted to comparing against head_reference/typhoon + the live working-tree binary -- it had been pointed at a since-deleted, long-stale one-off comparison binary (typhoon_allbitboards) since 92fc412, silently invalidating every "vs head" self-play check run through it since Sep 4. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ka9o3S2eKqh4jNfmxVZ6fH
Diffstat (limited to 'src/autoplay/child_process.h')
-rw-r--r--src/autoplay/child_process.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/autoplay/child_process.h b/src/autoplay/child_process.h
deleted file mode 100644
index 6c03ecd..0000000
--- a/src/autoplay/child_process.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// child_process.h -- description
-
-#ifndef _CHILD_PROCESS_H_
-#define _CHILD_PROCESS_H_
-
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <vector>
-using namespace std;
-
-namespace util {
-
-class ChildProcess {
- public:
- explicit ChildProcess(const char *commandline)
- : commandline_(strdup(commandline)),
- name_(NULL),
- running_(false),
- pid_(-1),
- to_(NULL),
- from_(NULL),
- child_ready_(false) {}
- virtual ~ChildProcess() {
- Stop();
- free(commandline_);
- commandline_ = NULL;
- }
-
- virtual void Start();
- virtual void Stop();
- void Send(char *line);
- void Receive(char *line, int size);
- bool Poll();
- void Flush();
-
- private:
- void ParseCommandline(vector<char *> *args);
- char *commandline_;
- char *name_;
- bool running_;
- pid_t pid_;
- int write_pipe_[2];
- int read_pipe_[2];
- FILE *to_;
- FILE *from_;
- volatile bool child_ready_;
-};
-
-} // namespace
-
-#endif /* _CHILD_PROCESS_H_ */