We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cacb61e commit d841b99Copy full SHA for d841b99
src/app/shared_dev/commands/configure/kill.c
@@ -156,8 +156,9 @@ init( config_t const * config ) {
156
157
int killed = maybe_kill( config, pid );
158
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;
+ if( FD_UNLIKELY( wait_killed_cnt==(sizeof(wait_killed)/sizeof(wait_killed[0])) ) )
+ FD_LOG_ERR(( "too many processes to kill" ));
161
+ wait_killed[ wait_killed_cnt++ ] = pid;
162
}
163
164
0 commit comments