search for: saved_fd

Displaying 1 result from an estimated 1 matches for "saved_fd".

Did you mean: saved_fs
2002 Jul 25
0
Please evaluate my patch for Winbind
...ndle + will still be valid but it may be 0, 1 or 2. If a valid file + handle is returned and the returned handle is different to the + original one, the original one will be closed. If dup() is broken, + this function might never return. */ + + int make_nonstd_fd(int fd) + { + int saved_fd; + if (0 >= fd && fd <= 2) { + fd = dup(saved_fd = fd); + if (fd == -1) return saved_fd; + fd = make_nonstd_fd(fd); + close(saved_fd); + } + return fd; + } + /* Connect to winbindd socket */ int winbind_open_pipe_sock(void) *************** *** 158,164 **...