<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12518</bug_id>
          
          <creation_ts>2018-01-30 04:17:21 +0000</creation_ts>
          <short_desc>Ctrl+C doesn&apos;t close menuconfig terminal</short_desc>
          <delta_ts>2018-04-11 00:23:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anuj Mittal">anuj.mittal</reporter>
          <assigned_to name="Yi Zhao">yi.zhao</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>stephano</cc>
    
    <cc>tom.zanussi</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79270</commentid>
    <comment_count>0</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-01-30 04:17:21 +0000</bug_when>
    <thetext>It looks like bitbake has stopped configuring kernel when ctrl+c is pressed twice but terminal with menuconfig keeps running and isn&apos;t closed.

bitbake -c menuconfig virtual/kernel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79303</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-02-01 19:40:38 +0000</bug_when>
    <thetext>It&apos;s a medium priority since one can just exit from the menuconfig session first. Robert please see if we can correct the behaviour to have bitbake kill the terminal session on the second control-c.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79312</commentid>
    <comment_count>2</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-02-02 07:25:23 +0000</bug_when>
    <thetext>Was the milestone value changed by mistake?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79316</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-02-02 14:53:09 +0000</bug_when>
    <thetext>&gt; Was the milestone value changed by mistake?
Yes. Fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79769</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2018-03-08 18:45:12 +0000</bug_when>
    <thetext>This issue only happens with gnome-terminal which introduced by commit: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c706bfbabbf9f7caf2cf509eb91381fb49aa44cb

For more details, please see:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=7254

As workaround, you could set OE_TERMINAL = &quot;xterm&quot; or OE_TERMINAL = &quot;rxvt&quot; in conf/local.conf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79784</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2018-03-11 23:00:41 +0000</bug_when>
    <thetext>For more details, please see bug 7254 Comment 11 . The root cause is when the gnome-terminal gets spawned, it becomes a child process for gnome-terminal-sever. Once bitbake process gets the SIGTERM, it can not kill the gnome-terminal as it is not the child process for bitbake.

It seems the Ubuntu (16.04) keeps the --disable-factory option for gnome-terminal. If you are using gnome-terminal on Ubuntu, you could apply the following patch as a workaround:

diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index 94afe39..908a95d 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -52,7 +52,7 @@ class XTerminal(Terminal):
             raise UnsupportedTerminal(self.name)
 
 class Gnome(XTerminal):
-    command = &apos;gnome-terminal -t &quot;{title}&quot; -x {command}&apos;
+    command = &apos;gnome-terminal --disable-factory -t &quot;{title}&quot; -x {command}&apos;
     priority = 2
 
     def __init__(self, sh_cmd, title=None, env=None, d=None):</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80197</commentid>
    <comment_count>6</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2018-04-11 00:23:48 +0000</bug_when>
    <thetext>As comment in bug 7254 Comment 11 . The root cause is when the gnome-terminal gets spawned, it becomes a child process for gnome-terminal-sever. Once bitbake process gets the SIGTERM, it can not kill the gnome-terminal as it is not the child process for bitbake.

As workaround, you could set OE_TERMINAL = &quot;xterm&quot; or OE_TERMINAL = &quot;rxvt&quot; in conf/local.conf.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>