diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-10-17 22:32:43 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-10-18 17:35:32 +0200 |
commit | 4dfedd3930fffcf7e5c43cea103ccf4640ae3b9e (patch) | |
tree | 733a26d8e5884cfa66218acfc8fb3d63a89f8e93 /TraceScreen.h | |
parent | c138d148974ab383044d1eec9922127faeb020f0 (diff) |
Fix various file descriptor leaks
Diffstat (limited to 'TraceScreen.h')
-rw-r--r-- | TraceScreen.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/TraceScreen.h b/TraceScreen.h index 513ea461..552d14fa 100644 --- a/TraceScreen.h +++ b/TraceScreen.h @@ -7,15 +7,18 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include <stdbool.h> +#include <stdio.h> +#include <sys/types.h> + #include "InfoScreen.h" + typedef struct TraceScreen_ { InfoScreen super; bool tracing; - int fdpair[2]; - int child; + pid_t child; FILE* strace; - int fd_strace; bool contLine; bool follow; } TraceScreen; |