Bug 5984

Summary: PR server closes using SIGTERM
Product: [Build System, Metadata & Runtime] BitBake Reporter: Stoicescu Cornel <corneliux.stoicescu>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Stoicescu Cornel 2014-03-17 09:42:20 UTC
STATUS: PASSED
BUILD: master:1960f6b2ecbb793b40ebc9aed25c8f9cb7884c9a
ENVIRONMENT: Ubuntu 13.10 x86_64
STEPS TO REPRODUCE: 
1. prepare 2 poky build environments
2. in one of the poky source, run "bitbake-prserv --start"
3. in the second poky source, set PRSERV_HOST to 127.0.0.1:8585
4. run "bitbake xcursor-transparent-theme" and then add following lines into xcursor-transparent-theme_${PV}.bb

#######
do_package_append() {
bb.build.exec_func('do_test_prserv', d)
}

do_test_prserv() {
echo "Test if PR service could work"
}
#######

5. re-run "bitbake xcursor-transparent-theme"
6. return to the first poky source and from its build directory issue 'bitbake-prserv --stop'

Notice output:
cornel@NODE-3:~/SSD/poky/build$ bitbake-prserv --stop
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Waiting for pr-server to exit.
Sending SIGTERM to pr-server.
Comment 1 Stoicescu Cornel 2014-03-17 09:43:33 UTC
Notice normal behavior:
cornel@NODE-3:~/SSD/poky/build$ bitbake-prserv --start
cornel@NODE-3:~/SSD/poky/build$ bitbake-prserv --stop
Waiting for pr-server to exit.
cornel@NODE-3:~/SSD/poky/build$'
Comment 3 Stoicescu Cornel 2014-04-01 14:03:19 UTC
Verified in poky master:f688f6b566f455eb55d6e5491c80b88c493e158b