From: Steven Luo Date: Mon, 22 Feb 2010 10:44:01 +0000 (-0800) Subject: Revert "Install the inotify watch for lockfile creation before forking" X-Git-Tag: fremantle-package-3.2-1fremantle1~13 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=dcae784419c7236a104e29ec8ea07d15c195d02a;p=browser-switch Revert "Install the inotify watch for lockfile creation before forking" This reverts commit c3c41ba1385b47dc2a167e963478779ad5c952fe. --- diff --git a/launcher.c b/launcher.c index 10ff41b..33ac536 100644 --- a/launcher.c +++ b/launcher.c @@ -193,6 +193,10 @@ void launch_microb(struct swb_context *ctx, char *uri) { /* Release the osso_browser D-Bus name so that MicroB can take it */ dbus_release_osso_browser_name(ctx); + if ((pid = fork()) == -1) { + perror("fork"); + exit(1); + } #ifdef FREMANTLE /* Put together the path to the MicroB browserd lockfile */ if (!(homedir = getenv("HOME"))) @@ -228,11 +232,6 @@ void launch_microb(struct swb_context *ctx, char *uri) { } free(microb_profile_dir); - if ((pid = fork()) == -1) { - perror("fork"); - exit(1); - } - if (pid > 0) { /* Parent process */ /* Wait for our child to start the browser UI process and @@ -467,11 +466,6 @@ void launch_microb(struct swb_context *ctx, char *uri) { execl("/usr/bin/maemo-invoker", "browser", (char *)NULL); } #else /* !FREMANTLE */ - if ((pid = fork()) == -1) { - perror("fork"); - exit(1); - } - if (pid > 0) { /* Parent process */ waitpid(pid, &status, 0);