<?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>8260</bug_id>
          
          <creation_ts>2015-09-04 22:12:55 +0000</creation_ts>
          <short_desc>bitbake-prserv: when using --port 0, the daemon cannot be stopped</short_desc>
          <delta_ts>2015-10-07 13:47: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>Scripts and Tools</component>
          <version>1.8</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.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53760</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-09-04 22:12:55 +0000</bug_when>
    <thetext>When using --port 0 on the script bitbake-prserv, then one tries to stop the daemon, the latter does not stop

Steps to reproduce:

1. bitbake-prserv --host localhost --port 0 --loglevel=DEBUG --start

2. ls -la /tmp/PRServer_127.0.0.1_37183.pid 
-rw-rw-rw- 1 lsandov1 users 6 Sep  4 13:56 /tmp/PRServer_127.0.0.1_37183.pid

3. bitbake-prserv --host localhost --port 0 --loglevel=DEBUG --stop
pidfile /tmp/PRServer_localhost_0.pid does not exist. Daemon not running?

4. ps axu | grep bitbake
lsandov1 28535  0.0  0.0 174704 15136 ?        Sl   13:56   0:00 python /home/lsandov1/poky/bitbake/bin/bitbake-prserv --host localhost --port 0 --loglevel=DEBUG --start


As one can see, step 3 fails an daemon is still running as shown in 4.

This problem is quite similar to https://bugzilla.yoctoproject.org/show_bug.cgi?id=8258, however, in 8258 the daemon is closed, and in this case it is not, so filing this bug due to the latter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54125</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-09-15 23:12:52 +0000</bug_when>
    <thetext>Patch sent to the ML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55030</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-10-07 13:47:48 +0000</bug_when>
    <thetext>Patch merged:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f78f90240a3041be426c6ba9085849352164ee8b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>