[maemo-developers] properly shutting down maemo inside scratchbox
From: Chris Taylor chtaylo4 at gmail.comDate: Wed May 16 21:02:15 EEST 2007
- Previous message: New release of Python2.5 for Maemo (r0.4-10)
- Next message: Oprofile or Gprof working with toolchain cs2005q3.2-glibc-arm and bora?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello all, I have a question regarding the tutorial located here: http://maemo.org/development/documentation/tutorials/Maemo_tutorial_bora.html It seems that some services linger after the "af-sb-int.sh stop" is called After starting up xephyr and "af-sb-init.sh start" here is a ps inside scratchbox: PID TTY STAT TIME COMMAND 3213 pts/1 Ss+ 0:00 bash 2952 pts/0 Ss 0:00 bash 2972 pts/0 S 0:00 \_ /bin/bash /scratchbox/login 2985 pts/0 S 0:00 \_ /scratchbox/tools/bin/bash -l 4634 pts/0 R+ 0:00 \_ ps f 4606 pts/0 S 0:00 /scratchbox/tools/bin/misc_runner /usr/bin/maemo_af_desktop /usr/bin/maemo_af_desktop 4607 pts/0 S 0:00 \_ /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/maemo_af_desktop /usr/bin/maemo_af_desktop 4589 pts/0 S 0:00 /scratchbox/tools/bin/misc_runner /usr/bin/clipboard-manager /usr/bin/clipboard-manager 4590 pts/0 S 0:00 \_ /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/clipboard-manager /usr/bin/clipboard-manager 4576 pts/0 S 0:00 /scratchbox/tools/bin/misc_runner /usr/bin/matchbox-window-manager /usr/bin/matchbox-window-manager -theme default -use_titlebar yes -use_desktop_mode plain -use_lowlight no -use_cursor yes -use_dialog_mode static -use_super_modal yes 4577 pts/0 S 0:00 \_ /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/matchbox-window-manager /usr/bin/matchbox-window-manager -theme default -use_titlebar yes -use_desktop_mode plain -use_lowlight no -use_cursor yes -use_dialog_mode static -use_super_modal yes 4564 pts/0 S 0:00 /scratchbox/tools/bin/misc_runner /usr/lib/sapwood/sapwood-server /usr/lib/sapwood/sapwood-server 4565 pts/0 S 0:00 \_ /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/lib/sapwood/sapwood-server /usr/lib/sapwood/sapwood-server 4540 pts/0 S 0:00 /scratchbox/tools/bin/misc_runner /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 4541 pts/0 S 0:00 \_ /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 4529 pts/0 S 0:00 /scratchbox/tools/bin/misc_runner /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system 4530 pts/0 S 0:00 \_ /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system 3770 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 3758 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system 3085 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 3082 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system After I do a af-sb-init.sh stop but BEFORE I close the Xephyr window, I do another ps: PID TTY STAT TIME COMMAND 3213 pts/1 Ss+ 0:00 bash 2952 pts/0 Ss 0:00 bash 2972 pts/0 S 0:00 \_ /bin/bash /scratchbox/login 2985 pts/0 S 0:00 \_ /scratchbox/tools/bin/bash -l 4756 pts/0 R+ 0:00 \_ ps f 4607 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/maemo_af_desktop /usr/bin/maemo_af_desktop 4590 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/clipboard-manager /usr/bin/clipboard-manager 4577 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/matchbox-window-manager /usr/bin/matchbox-window-manager -theme default -use_titlebar yes -use_desktop_mode plain -use_lowlight no -use_cursor yes -use_dialog_mode static -use_super_modal yes 4565 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/lib/sapwood/sapwood-server /usr/lib/sapwood/sapwood-server 4541 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 4530 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system 3770 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 3758 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system 3085 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 3082 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system Here's a ps after I close the Xephyr window: PID TTY STAT TIME COMMAND 3213 pts/1 Ss+ 0:00 bash 2952 pts/0 Ss 0:00 bash 2972 pts/0 S 0:00 \_ /bin/bash /scratchbox/login 2985 pts/0 S 0:00 \_ /scratchbox/tools/bin/bash -l 4766 pts/0 R+ 0:00 \_ ps f 4541 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 4530 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system 3770 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 3758 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system 3085 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --session --print-address=2 3082 pts/0 S 0:00 /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.1-sb2 --sbox-call /usr/bin/dbus-daemon /usr/bin/dbus-daemon --system Notice how processes 4607, 4590, 4577, and 4565 all seem to linger until the Xephyr window is closed. I think that's what's generating the following error that I get after I close down the Xephyr window: X connection to :2.0 broken (explicit kill or server shutdown). The application 'sapwood-server' lost its conenction to the display 2.0; most likely the X server was shutdown or you killed/destroyed the application. X connection to :2.0 broken (explicit kill or server shutdown). The application 'maemo_af_desktop' lost its conenction to the display 2.0; most likely the X server was shutdown or you killed/destroyed the application. It looks like af-sb-init.sh stop isn't stopping processes 4607, 4590, 4577 and 4565. When I close the Xephyr window, those fours process are stopped but nor before two of them (sapwood-server and maemo_af_desktop) complain that they lost their X server connection to display :2.0 Any thoughts or suggestion on how I go about shutting this down gracefully (as to not generate the error listed above) would be great! Respectfully, Christopher Taylor
- Previous message: New release of Python2.5 for Maemo (r0.4-10)
- Next message: Oprofile or Gprof working with toolchain cs2005q3.2-glibc-arm and bora?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]