undo last change (bacause Arvin was faster and has already fixed the bug)
authorThomas Goettlicher <tgoettlicher@suse.de>
Wed, 19 Sep 2007 07:28:42 +0000 (07:28 +0000)
committerThomas Goettlicher <tgoettlicher@suse.de>
Wed, 19 Sep 2007 07:28:42 +0000 (07:28 +0000)
src/zypp-checkpatches-wrapper.c

index 96620f9..2b81b77 100644 (file)
@@ -68,29 +68,6 @@ int main (void)
 
     umask(0022);
 
-
-
-    /* check if stdout/stderr file descriptors are open */
-    while (1) {
-        int     fd;
-
-        fd = open("/dev/null", O_RDWR);
-        if (fd < 0)
-       {
-               fprintf (stdout, "<?xml version='1.0'?>\n");
-               fprintf (stdout, "<stream>\n");
-               fprintf (stdout, "<message type=\"error\">stdout/stderr file descriptores are not open</message>\n");
-               fprintf (stdout, "</stream>\n");
-               return(WRAPPER_ERROR);
-       }
-        if (fd > 2) {
-            close(fd);
-            break;
-        }
-    }
-
-
-
     /* execute the real application */
     execl (app, app, arg1, arg2, arg3, arg4, (char *) NULL);