]> git.sur5r.net Git - openldap/commitdiff
Remove istty test otherwise we may not detach.
authorKurt Zeilenga <kurt@openldap.org>
Sun, 5 Dec 1999 05:25:02 +0000 (05:25 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 5 Dec 1999 05:25:02 +0000 (05:25 +0000)
libraries/liblutil/detach.c

index c4f2aa4478eb6db60d4ec83cb3c0b0b6fa85aa41..90cb984118f3b90d1bf04addcb5af1eb98330b37 100644 (file)
@@ -83,7 +83,7 @@ lutil_detach( int debug, int do_close )
                        exit( EXIT_FAILURE );
                }
                for ( i = 0;  i < 3;  i++ )
-                       if ( sd != i && isatty( i ) )
+                       if ( sd != i )
                                (void) dup2( sd, i );
                if ( sd > 2 )
                        close( sd );