Skip to content

Commit d841b99

Browse files
amass-jumpmmcgee-jump
authored andcommitted
configure: fix pid wait bug in kill stage
1 parent cacb61e commit d841b99

File tree

1 file changed

+3
-2
lines changed
  • src/app/shared_dev/commands/configure

1 file changed

+3
-2
lines changed

src/app/shared_dev/commands/configure/kill.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ init( config_t const * config ) {
156156

157157
int killed = maybe_kill( config, pid );
158158
if( FD_UNLIKELY( killed ) ) {
159-
if( FD_UNLIKELY( wait_killed_cnt==sizeof(wait_killed) ) ) FD_LOG_ERR(( "too many processes to kill" ));
160-
wait_killed[ wait_killed_cnt ] = pid;
159+
if( FD_UNLIKELY( wait_killed_cnt==(sizeof(wait_killed)/sizeof(wait_killed[0])) ) )
160+
FD_LOG_ERR(( "too many processes to kill" ));
161+
wait_killed[ wait_killed_cnt++ ] = pid;
161162
}
162163
}
163164

0 commit comments

Comments
 (0)