From 78d769e0cfbc1d7269d523fa3608f3561a99a6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Tue, 11 Apr 2000 23:00:57 +0200 Subject: [PATCH] Added some debug to pike_make_pipe(). Rev: src/modules/files/file.c:1.172 --- src/modules/files/file.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/files/file.c b/src/modules/files/file.c index 6c1dc8a585..971881c513 100644 --- a/src/modules/files/file.c +++ b/src/modules/files/file.c @@ -5,7 +5,7 @@ \*/ /**/ #include "global.h" -RCSID("$Id: file.c,v 1.171 2000/04/11 17:17:56 hubbe Exp $"); +RCSID("$Id: file.c,v 1.172 2000/04/11 21:00:57 grubba Exp $"); #include "fdlib.h" #include "interpret.h" #include "svalue.h" @@ -2779,6 +2779,14 @@ int pike_make_pipe(int *fds) if (res < 0) return res; if ((fds[0] >= MAX_OPEN_FILEDESCRIPTORS) || (fds[1] >= MAX_OPEN_FILEDESCRIPTORS)) { +#ifdef PIKE_DEBUG + /* FIXME: This function is currently only used to create the backend pipe, + * so this debug shouldn't hurt much... + */ + fprintf(stderr, + "pike_make_pipe() failed: fd's out of range [0,%d): %d, %d\n", + MAX_OPEN_FILEDESCRIPTORS, fds[0], fds[1]); +#endif /* PIKE_DEBUG */ close(fds[0]); close(fds[1]); #ifdef EMFILE -- GitLab