stop channel server, then xserver
This commit is contained in:
parent
18a5e7917d
commit
359a190850
@ -100,11 +100,24 @@ main(int argc, char** argv)
|
||||
{
|
||||
lerror = g_get_errno();
|
||||
}
|
||||
/* kill X server */
|
||||
g_sigterm(x_pid);
|
||||
/* kill channel server */
|
||||
g_sigterm(chansrv_pid);
|
||||
g_writeln("xrdp-sessvc: WM is dead (waitpid said %d, errno is %d) "
|
||||
"exiting...", ret, lerror);
|
||||
/* kill channel server */
|
||||
g_writeln("xrdp-sessvc: stopping channel server");
|
||||
g_sigterm(chansrv_pid);
|
||||
ret = g_waitpid(chansrv_pid);
|
||||
while ((ret == 0) && !g_term)
|
||||
{
|
||||
ret = g_waitpid(chansrv_pid);
|
||||
}
|
||||
/* kill X server */
|
||||
g_writeln("xrdp-sessvc: stopping X server");
|
||||
g_sigterm(x_pid);
|
||||
ret = g_waitpid(x_pid);
|
||||
while ((ret == 0) && !g_term)
|
||||
{
|
||||
ret = g_waitpid(x_pid);
|
||||
}
|
||||
g_writeln("xrdp-sessvc: clean exit");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user