summaryrefslogtreecommitdiff
path: root/libmailutils/diag/bt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmailutils/diag/bt.c')
-rw-r--r--libmailutils/diag/bt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmailutils/diag/bt.c b/libmailutils/diag/bt.c
index c27634ef2..3b43dcd21 100644
--- a/libmailutils/diag/bt.c
+++ b/libmailutils/diag/bt.c
@@ -36,7 +36,6 @@
void
mu_gdb_bt ()
{
- int i;
pid_t master_pid = getpid ();
pid_t pid;
static char buf[1024];
@@ -58,8 +57,7 @@ mu_gdb_bt ()
abort ();
}
- for (i = mu_getmaxfd (); i >= 0; i--)
- close (i);
+ mu_close_fds (0);
fd = open (fname, O_WRONLY|O_CREAT, 0600);
if (fd == -1)

Return to:

Send suggestions and report system problems to the System administrator.