Kaydet (Commit) 7bd7d37f authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck reduce scope in dmake/unix/runargv.c

üst 347367d1
......@@ -840,23 +840,25 @@ int pqid;
PUBLIC void
Clean_up_processes()
{
register int i;
int ret;
int ret;
if( _procs != NIL(PR) ) {
if( _procs != NIL(PR) )
{
register int i;
for( i=0; i<Max_proc; i++ )
if( _procs[i].pr_valid ) {
#if !defined(USE_CREATEPROCESS)
if( (ret = kill(_procs[i].pr_pid, SIGTERM)) ) {
fprintf(stderr, "Killing of pid %d from pq[%d] failed with: %s - %d ret: %d\n",
_procs[i].pr_pid, i,
strerror(errno), SIGTERM, ret );
if( _procs[i].pr_valid )
{
#if !defined(USE_CREATEPROCESS)
if( (ret = kill(_procs[i].pr_pid, SIGTERM)) )
{
fprintf(stderr, "Killing of pid %d from pq[%d] failed with: %s - %d ret: %d\n",
_procs[i].pr_pid, i, strerror(errno), SIGTERM, ret );
}
#else
TerminateProcess(_procs[i].pr_pid, 1);
#endif
}
#else
TerminateProcess(_procs[i].pr_pid, 1);
#endif
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment