Skip to content

Commit

Permalink
Fix: null check.
Browse files Browse the repository at this point in the history
It has never closed the child process because a wrong logic.
  • Loading branch information
jjnicola committed Oct 21, 2022
1 parent 58747a9 commit d145331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processes.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ terminate_process (pid_t pid)
void
procs_terminate_childs ()
{
if (ipcc != NULL)
if (ipcc == NULL)
return;

for (int i = 0; i < ipcc->len; i++)
Expand Down

0 comments on commit d145331

Please sign in to comment.