patch 7.4.1765
Problem: Undo options are not together in the options window.
Solution: Put them together. (Gary Johnson)
diff --git a/src/os_unix.c b/src/os_unix.c
index f8cf691..57eb050 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5138,7 +5138,8 @@
if (pid == 0)
{
- int null_fd = -1;
+ int null_fd = -1;
+ int stderr_works = TRUE;
/* child */
reset_signals(); /* handle signals normally */
@@ -5175,6 +5176,7 @@
{
close(2);
ignored = dup(null_fd);
+ stderr_works = FALSE;
}
else if (use_out_for_err)
{
@@ -5210,7 +5212,8 @@
/* See above for type of argv. */
execvp(argv[0], argv);
- // perror("executing job failed");
+ if (stderr_works)
+ perror("executing job failed");
_exit(EXEC_FAILED); /* exec failed, return failure code */
}