@@ -113,10 +113,10 @@ int main (int argc, char * const *argv, char * const *envp) {
113113
114114 if (processor ) {
115115 buffer_init (& buffer_x , buffer_unixread , 4 , buffer_x_space ,
116- sizeof buffer_x_space );
116+ sizeof buffer_x_space );
117117 } else {
118118 buffer_init (& buffer_x , buffer_unixread , 0 , buffer_x_space ,
119- sizeof buffer_x_space );
119+ sizeof buffer_x_space );
120120 }
121121
122122 /* start real processor */
@@ -125,7 +125,7 @@ int main (int argc, char * const *argv, char * const *envp) {
125125 }
126126 while ((pid = fork ()) == -1 ) {
127127 strerr_warn4 (WARNING , "unable to fork for \"" , * argv , "\" pausing: " ,
128- & strerr_sys );
128+ & strerr_sys );
129129 sleep (5 );
130130 }
131131 if (!pid ) {
@@ -138,8 +138,8 @@ int main (int argc, char * const *argv, char * const *envp) {
138138 close (cpipe [1 ]);
139139 fd_move (0 , cpipe [0 ]);
140140 if (processor ) {
141- fd_move (2 , 5 );
142- close (4 );
141+ fd_move (2 , 5 );
142+ close (4 );
143143 }
144144 if (pgroup ) setsid ();
145145 pathexec_run (* argv , argv , envp );
@@ -177,26 +177,26 @@ int main (int argc, char * const *argv, char * const *envp) {
177177
178178 r = buffer_feed (& buffer_x );
179179 if (r < 0 ) {
180- if ((errno == error_intr ) || (errno == error_again )) continue ;
180+ if ((errno == error_intr ) || (errno == error_again )) continue ;
181181 }
182182 if (r == 0 ) {
183- if (processor && (buffer_x .fd == 4 )) {
184- x [1 ].fd = 0 ;
185- buffer_init (& buffer_x , buffer_unixread , 0 , buffer_x_space ,
186- sizeof buffer_x_space );
187- continue ;
188- }
189- if (iopausefds == 2 ) {
190- close (cpipe [1 ]);
191- iopausefds = 1 ;
192- }
193- continue ;
183+ if (processor && (buffer_x .fd == 4 )) {
184+ x [1 ].fd = 0 ;
185+ buffer_init (& buffer_x , buffer_unixread , 0 , buffer_x_space ,
186+ sizeof buffer_x_space );
187+ continue ;
188+ }
189+ if (iopausefds == 2 ) {
190+ close (cpipe [1 ]);
191+ iopausefds = 1 ;
192+ }
193+ continue ;
194194 }
195195 s = buffer_peek (& buffer_x );
196196 i = write (cpipe [1 ], s , r );
197197 if (i == -1 ) strerr_die2sys (111 , FATAL , "unable to write to child: " );
198198 if (i < r )
199- strerr_die2x (111 , FATAL , "unable to write to child: partial write" );
199+ strerr_die2x (111 , FATAL , "unable to write to child: partial write" );
200200
201201 buffer_seek (& buffer_x , r );
202202 }
@@ -206,7 +206,7 @@ int main (int argc, char * const *argv, char * const *envp) {
206206 if (wait_nohang (& rc ) == pid ) break ;
207207 /* child not finished */
208208 strerr_warn4 (WARNING ,
209- "child \"" , * argv , "\" timed out. sending TERM..." , 0 );
209+ "child \"" , * argv , "\" timed out. sending TERM..." , 0 );
210210 kill (pgroup ? - pid : pid , SIGTERM );
211211
212212 /* ktimeout sec timeout */
@@ -223,8 +223,8 @@ int main (int argc, char * const *argv, char * const *envp) {
223223 while (read (selfpipe [0 ], & ch , 1 ) == 1 ) {}
224224
225225 if (wait_nohang (& rc ) == pid ) {
226- strerr_warn2 (WARNING , "child terminated." , 0 );
227- break ;
226+ strerr_warn2 (WARNING , "child terminated." , 0 );
227+ break ;
228228 }
229229 rc = 111 ;
230230 taia_now (& now );
@@ -240,8 +240,8 @@ int main (int argc, char * const *argv, char * const *envp) {
240240 if (rc == 0 ) _exit (0 );
241241 if (verbose ) strerr_warn2 (WARNING , "child crashed." , 0 );
242242 if (lseek (0 , 0 , SEEK_SET ) != 0 )
243- if (verbose ) strerr_warn2 (WARNING ,
244- "unable to lseek fd 0: " , & strerr_sys );
243+ if (verbose ) strerr_warn2 (WARNING ,
244+ "unable to lseek fd 0: " , & strerr_sys );
245245 if (try >= trymax ) break ;
246246 sleep (1 );
247247 }
@@ -253,10 +253,10 @@ int main (int argc, char * const *argv, char * const *envp) {
253253
254254 r = buffer_feed (buffer_0 );
255255 if (r < 0 ) {
256- if ((errno == error_intr ) || (errno == error_again )) continue ;
256+ if ((errno == error_intr ) || (errno == error_again )) continue ;
257257 }
258258 if (r == 0 ) {
259- break ;
259+ break ;
260260 }
261261 s = buffer_peek (buffer_0 );
262262 buffer_putflush (buffer_1 , s , r );
0 commit comments