Parent Directory
|
Revision Log
|
Patch
| Revision 1.4 by sysadm, Tue Oct 19 17:11:39 2004 UTC | Revision 1.5 by sysadm, Thu Oct 21 17:28:46 2004 UTC | |
|---|---|---|
| # | Line 111 log_error (char *error_msg) | Line 111 log_error (char *error_msg) |
| 111 | ||
| 112 | return 0; | return 0; |
| 113 | } | } |
| 114 | ||
| 115 | int | |
| 116 | log_std_redirect(int fd) | |
| 117 | { | |
| 118 | int ret; | |
| 119 | close (fileno(fp_log_std)); | |
| 120 | ret = dup2(fd, fileno(fp_log_std)); | |
| 121 | return ret; | |
| 122 | } | |
| 123 | ||
| 124 | int | |
| 125 | log_err_redirect(int fd) | |
| 126 | { | |
| 127 | int ret; | |
| 128 | close (fileno(fp_log_err)); | |
| 129 | ret = dup2(fd, fileno(fp_log_err)); | |
| 130 | return ret; | |
| 131 | } |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |