We are going to want to do this separately in the fuzz playback. This
avoids difficulties with adnstest (which calls Texit rather than
Hexit) and programs which return from main(), both of which we want to
capture the exit status of in the fuzz playbacks.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}
}
-void Texit(int rv) {
- Tallocshutdown();
- exit(rv);
-}
-
void Hexit(int rv) {
vb.used= 0;
Tvbf("exit %d", rv);
FILE *Hfopen(const char *path, const char *mode) { return fopen(path,mode); }
+void Texit(int rv) {
+ Tallocshutdown();
+ exit(rv);
+}
+
int Ttestinputfd(void) {
const char *fdstr= getenv("ADNS_TEST_IN_FD");
if (!fdstr) return -1;