<?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>7973</bug_id>
          
          <creation_ts>2015-07-08 21:10:11 +0000</creation_ts>
          <short_desc>stopping toaster kills ALL django apps running on the machine.</short_desc>
          <delta_ts>2016-09-09 06:42:20 +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>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2</target_milestone>
          
          <blocked>7972</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</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>52224</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2015-07-08 21:10:11 +0000</bug_when>
    <thetext>because we run 
ps fux | grep &quot;python.*manage.py runserver&quot; | awk &apos;{print $2}&apos; | xargs kill

my analysis instantiation of toaster on :8000 was killed when I stopped my build version on :8001.  My Django tutorial running on port 8003 was also killed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61617</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-04-25 14:35:31 +0000</bug_when>
    <thetext>I am not sure if Brian Avery will be available to do much Toaster work, so setting this one to the default assignee for the moment. Brian: feel free to take it back if you really want it!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63653</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-07-05 14:33:26 +0000</bug_when>
    <thetext>I&apos;ve found possible easy way to fix this bug while I was working on documentation for production setup. If we run toaster in the screen session then &apos;screen -S&lt;session&gt; -X quit&apos; will kill only processes started in the session. It does it very reliably. I never noticed any processes left if I quite screen session.

Does it make sense to use this approach from your point of view?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63682</commentid>
    <comment_count>3</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-07-06 17:59:20 +0000</bug_when>
    <thetext>Sadly, no.  I&apos;m addicted to screen. Unfortunately, a large number of users seem to find it very confusing and adding an additional level of complexity (learning screen commands, in this case) runs counter to the goal of toaster being easier to use than bitbake cli.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63705</commentid>
    <comment_count>4</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-07-07 08:33:35 +0000</bug_when>
    <thetext>Ok then, I&apos;ll go with setting a pid namespace [1] to main toaster script. It&apos;s proven way to reliably kill all the children of main process. This would require a bit more work though.

1. http://man7.org/linux/man-pages/man7/pid_namespaces.7.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65632</commentid>
    <comment_count>5</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-08-31 11:17:38 +0000</bug_when>
    <thetext>patchset has been sent for review: http://lists.openembedded.org/pipermail/openembedded-core/2016-August/126002.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65969</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-09-09 06:42:20 +0000</bug_when>
    <thetext>Patchset has been merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b22a505414db060b5df0ce3d6c84c5dffd38463e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>