summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/unix/x11pdf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/unix/x11pdf.c b/apps/unix/x11pdf.c
index 43e2c4c4..fc069e26 100644
--- a/apps/unix/x11pdf.c
+++ b/apps/unix/x11pdf.c
@@ -431,7 +431,8 @@ void winopenuri(pdfapp_t *app, char *buf)
char *browser = getenv("BROWSER");
if (!browser)
browser = "open";
- execlp(browser, browser, buf, (char*)0);
+ if (fork() == 0)
+ execlp(browser, browser, buf, (char*)0);
}
static void onkey(int c)