a1a0a03d78
Copy from home:jengelh:branches:Base:System/man via accept of submit request 26365 revision 2. Request was accepted with message: thanks OBS-URL: https://build.opensuse.org/request/show/26365 OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=11
33 lines
920 B
Plaintext
33 lines
920 B
Plaintext
Index: src/man.c
|
|
===================================================================
|
|
--- src/man.c.orig
|
|
+++ src/man.c
|
|
@@ -2031,21 +2031,23 @@ static void format_display (pipeline *de
|
|
if (!status)
|
|
break;
|
|
}
|
|
- if (!candidate)
|
|
- error (CHILD_FAIL, 0,
|
|
- "couldn't execute any browser from %s",
|
|
- html_pager);
|
|
free (browser_list);
|
|
if (chdir (old_cwd) == -1) {
|
|
error (0, errno, _("can't change to directory %s"),
|
|
old_cwd);
|
|
chdir ("/");
|
|
}
|
|
+ if (!status)
|
|
+ sleep(5); /* firefox runs into background to fast */
|
|
if (remove_directory (htmldir) == -1)
|
|
error (0, errno, _("can't remove directory %s"),
|
|
htmldir);
|
|
free (htmlfile);
|
|
free (htmldir);
|
|
+ if (!candidate)
|
|
+ error (CHILD_FAIL, 0,
|
|
+ "couldn't execute any browser from %s",
|
|
+ html_pager);
|
|
} else
|
|
#endif /* TROFF_IS_GROFF */
|
|
/* TODO: check format_cmd status too? */
|