<p dir="ltr"><br>
On May 6, 2013 7:13 PM, "Cyrill Gorcunov" <<a href="mailto:gorcunov@openvz.org">gorcunov@openvz.org</a>> wrote:<br>
><br>
> Since we're migrating session leader here,<br>
> test for session has not been changed instead.</p>
<p dir="ltr">In this case the test doesn't wait c/r. I don't like when sleep is used for synchronization instead of sending a signal.</p>
<p dir="ltr">><br>
> Signed-off-by: Cyrill Gorcunov <<a href="mailto:gorcunov@openvz.org">gorcunov@openvz.org</a>><br>
> ---<br>
> test/app-emu/job/job.c | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/test/app-emu/job/job.c b/test/app-emu/job/job.c<br>
> index e01480a..5f334ff 100644<br>
> --- a/test/app-emu/job/job.c<br>
> +++ b/test/app-emu/job/job.c<br>
> @@ -80,7 +80,7 @@ int main(int argc, char *argv[])<br>
> exit(-1);<br>
> }<br>
><br>
> - if (getsid(pid) != sid) {<br>
> + if (getsid(pid) == sid) {<br>
> printf("ALIVE\n");<br>
> break;<br>
> }<br>
> --<br>
> 1.8.1.4<br>
><br>
</p>