Revert "Make sure a running browserd is detected correctly on all devices"
authorSteven Luo <steven+maemo@steven676.net>
Mon, 22 Feb 2010 10:44:05 +0000 (02:44 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Mon, 22 Feb 2010 10:44:05 +0000 (02:44 -0800)
This reverts commit aea8af77e9b8614776a3be05a4dff86ea25063f6.

launcher.c

index 6759813..feef231 100644 (file)
@@ -179,7 +179,7 @@ void launch_microb(struct swb_context *ctx, char *uri) {
        printf("launch_microb with uri '%s'\n", uri);
 
        /* Launch browserd if it's not running */
-       status = system("pidof browserd > /dev/null");
+       status = system("pidof /usr/sbin/browserd > /dev/null");
        if (WIFEXITED(status) && WEXITSTATUS(status)) {
                kill_browserd = 1;
 #ifdef FREMANTLE
@@ -408,7 +408,7 @@ void launch_microb(struct swb_context *ctx, char *uri) {
 
        /* Kill off browserd if we started it */
        if (kill_browserd)
-               system("kill `pidof browserd`");
+               system("kill `pidof /usr/sbin/browserd`");
 
        if (!ctx || !ctx->continuous_mode) 
                exit(0);