apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/file_io/unix filedup.c
Date Tue, 08 Jan 2002 03:48:18 GMT
wrowe       02/01/07 19:48:18

  Modified:    file_io/unix filedup.c
  Log:
    Ok, that was borked... here should compile :-/
  
  Revision  Changes    Path
  1.38      +1 -1      apr/file_io/unix/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filedup.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- filedup.c	8 Jan 2002 03:45:09 -0000	1.37
  +++ filedup.c	8 Jan 2002 03:48:18 -0000	1.38
  @@ -96,7 +96,7 @@
        * unless you have dup2'ed fd 0-2 (stdin, stdout or stderr) which
        * should never, never, never close on fork()
        */
  -    if (have_file && old_file->filedes >= 0 and old_file->filedes <=
2) {
  +    if (have_file && ((*new_file)->filedes >= 0) && ((*new_file)->filedes
<= 2)) {
           (*new_file)->flags = old_file->flags | APR_INHERIT;
           apr_pool_cleanup_register((*new_file)->cntxt, (void *)(*in), 
                                     apr_unix_file_cleanup, apr_pool_cleanup_null);
  
  
  

Mime
View raw message