@@ -115,7 +115,7 @@ typedef struct {
115
115
unsigned int first , last , flags ;
116
116
} close_range_args_t ;
117
117
118
- /* If there is some `close` or `close_range` system call before do_init,
118
+ /* If there is some `close` or `close_range` system call before do_init,
119
119
we buffer it, and actually execute them in do_init. */
120
120
static int close_fds [16 ];
121
121
static int close_fds_cnt = 0 ;
@@ -560,9 +560,7 @@ static void get_chain_data(proxy_data * pd, unsigned int *proxy_count, chain_typ
560
560
}
561
561
}
562
562
}
563
- #ifndef BROKEN_FCLOSE
564
563
fclose (file );
565
- #endif
566
564
if (!count ) {
567
565
fprintf (stderr , "error: no valid proxy found in config\n" );
568
566
exit (1 );
@@ -639,7 +637,7 @@ HOOKFUNC(int, close_range, unsigned first, unsigned last, int flags) {
639
637
int protected_fds [] = {req_pipefd [0 ], req_pipefd [1 ], resp_pipefd [0 ], resp_pipefd [1 ]};
640
638
intsort (protected_fds , 4 );
641
639
/* We are skipping protected_fds while calling true_close_range()
642
- * If protected_fds cut the range into some sub-ranges, we close sub-ranges BEFORE cut point in the loop.
640
+ * If protected_fds cut the range into some sub-ranges, we close sub-ranges BEFORE cut point in the loop.
643
641
* [first, cut1-1] , [cut1+1, cut2-1] , [cut2+1, cut3-1]
644
642
* Finally, we delete the remaining sub-range, outside the loop. [cut3+1, tail]
645
643
*/
0 commit comments