- execlp("netscape", "netscape", "-noraise", "-remote", open_url, NULL);
- perror("exec failed:");
- exit(-1);
- }
- mdom_string_free(href);
+PRIVATE void
+jump(mDOMConstStringRef href)
+{
+ pid_t pid;
+ g_return_if_fail(href != NULL);
+
+ gdk_window_set_cursor(main_area->window, pot_cursor);
+ loading = TRUE;
+ pid = fork();
+ if (pid == -1) exit(-1);
+ if (pid == 0) {
+ gchar* open_url = g_strdup_printf("openURL(%s,cic)", href);
+ gint fd;
+
+ close(0);
+ close(1);
+ close(2);
+
+ fd = open("/dev/null", O_RDWR);
+ dup(fd);
+ dup(fd);
+
+ execlp("netscape", "netscape", "-noraise", "-remote", open_url, NULL);
+ perror("exec failed:");
+ exit(-1);