lkml.org 
[lkml]   [2022]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 4/5] selftests/resctrl: Kill the child process before exiting the parent process if an exception occurs
From
Hi Shaopeng,

On 9/13/2022 6:51 PM, Shaopeng Tan wrote:

...

> @@ -218,11 +219,11 @@ int cat_perf_miss_val(int cpu_no, int n, char *cache_type)
> }
> }
> close(pipefd[0]);
> - kill(bm_pid, SIGKILL);
> }
>
> - if (bm_pid)
> - umount_resctrlfs();
> +out:
> + kill(bm_pid, SIGKILL);
> + umount_resctrlfs();
>

From what I can tell both parent and child will now run this code. So
both will attempt to unmount resctrl fs and the child will attempt
to kill PID 0?

Reinette

\
 
 \ /
  Last update: 2022-09-22 19:48    [W:0.484 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site