Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Aníbal Limón" <anibal.limon@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCHv2] xserver-nodm: Support reboot from inside X
Date: Tue, 26 May 2015 16:24:03 -0500	[thread overview]
Message-ID: <5564E473.4090400@linux.intel.com> (raw)
In-Reply-To: <1432147458-28773-1-git-send-email-anibal.limon@linux.intel.com>

ping...

On 20/05/15 13:44, Aníbal Limón wrote:
> From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
>
> If reboot was called from inside the Xserver there could happen a race
> condition where chvt would never end, and therefore the whole system was
> stalled.
>
> The user could not recover the system by ssh the machine or using the
> keyboard.
>
> Running chvt in background fixes the issue.
>
> Also move sleep 1s inside stop to give time for killproc xinit for
> fix issue when chvt 1 don't work because X server is still running.
>
> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
> ---
>   meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
> index 2e3e090..bfa0a8d 100755
> --- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
> +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
> @@ -48,12 +48,12 @@ case "$1" in
>     stop)
>           echo "Stopping XServer"
>           killproc xinit
> -        chvt 1
> +        sleep 1
> +        chvt 1 &
>     ;;
>   
>     restart)
>   	$0 stop
> -        sleep 1
>           $0 start
>     ;;
>   



  reply	other threads:[~2015-05-26 21:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20 18:44 [PATCHv2] xserver-nodm: Support reboot from inside X Aníbal Limón
2015-05-26 21:24 ` Aníbal Limón [this message]
2015-05-27 14:30   ` Ricardo Ribalda Delgado

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5564E473.4090400@linux.intel.com \
    --to=anibal.limon@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox