From 381e0880a89ca40ffec098664726f472729c7fe2 Mon Sep 17 00:00:00 2001 From: Thomas Goettlicher Date: Wed, 19 Sep 2007 07:28:42 +0000 Subject: [PATCH] undo last change (bacause Arvin was faster and has already fixed the bug) --- src/zypp-checkpatches-wrapper.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/zypp-checkpatches-wrapper.c b/src/zypp-checkpatches-wrapper.c index 96620f9..2b81b77 100644 --- a/src/zypp-checkpatches-wrapper.c +++ b/src/zypp-checkpatches-wrapper.c @@ -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, "\n"); - fprintf (stdout, "\n"); - fprintf (stdout, "stdout/stderr file descriptores are not open\n"); - fprintf (stdout, "\n"); - return(WRAPPER_ERROR); - } - if (fd > 2) { - close(fd); - break; - } - } - - - /* execute the real application */ execl (app, app, arg1, arg2, arg3, arg4, (char *) NULL); -- 2.7.4