summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e7bb0f3)
This avoids the silliness of doing this in both the parent and child
process.
/* Release the osso_browser D-Bus name so that MicroB can take it */
dbus_release_osso_browser_name(ctx);
/* 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")))
#ifdef FREMANTLE
/* Put together the path to the MicroB browserd lockfile */
if (!(homedir = getenv("HOME")))
}
free(microb_profile_dir);
}
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
if (pid > 0) {
/* Parent process */
/* Wait for our child to start the browser UI process and
execl("/usr/bin/maemo-invoker", "browser", (char *)NULL);
}
#else /* !FREMANTLE */
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);
if (pid > 0) {
/* Parent process */
waitpid(pid, &status, 0);