diff options
Diffstat (limited to 'pseudo_util.c')
-rw-r--r-- | pseudo_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pseudo_util.c b/pseudo_util.c index 0c156cf..a60c74b 100644 --- a/pseudo_util.c +++ b/pseudo_util.c @@ -1569,7 +1569,7 @@ pseudo_logfile(char *filename, char *defname, int prefer_fd) { if (fd == -1) return -1; else - return 0; + return fd; } int @@ -1579,6 +1579,7 @@ pseudo_debug_logfile(char *defname, int prefer_fd) { fd = pseudo_logfile(filename, defname, prefer_fd); if (fd > -1) { + pseudo_diag("debug_logfile: fd %d\n", fd); pseudo_util_debug_fd = fd; return 0; } |