Displaying 1 result from an estimated 1 matches for "xsiz".
Did you mean:
xsize
2013 Aug 02
9
[Bug 2139] New: re-exec fallback problem
...ion about which fd values.
I.e. if we ensure that FD to which stderr is redirected (-E), gets a
higher
than usual fd, then the problem goes away:
--- log.c.orig 2013-08-02 15:27:27.000000000 -0700
+++ log.c 2013-08-02 15:28:23.000000000 -0700
@@ -352,11 +352,20 @@
{
int fd;
+#define XSIZ 3
+ int f[XSIZ], i;
+ /* ensure fd gets a higher numbered fd */
+ for (i = 0; i < XSIZ; i++)
+ f[i] = open("/COPYRIGHT", O_RDONLY);
+
if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
fprintf(stderr, "Couldn't open logfile %s: %s\...