From aea8af77e9b8614776a3be05a4dff86ea25063f6 Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Fri, 5 Feb 2010 04:32:01 -0800 Subject: [PATCH] Make sure a running browserd is detected correctly on all devices `pidof /usr/sbin/browserd` doesn't work on at least one user's device; `pidof browserd` works everywhere without exception, so use that instead. Reported by Faheem Pervez (qwerty12). --- launcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher.c b/launcher.c index feef231..6759813 100644 --- a/launcher.c +++ b/launcher.c @@ -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 /usr/sbin/browserd > /dev/null"); + status = system("pidof 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 /usr/sbin/browserd`"); + system("kill `pidof browserd`"); if (!ctx || !ctx->continuous_mode) exit(0); -- 1.7.9.5