aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>1999-08-30 19:34:50 +0200
committerJuan Cespedes <cespedes@debian.org>1999-08-30 19:34:50 +0200
commit1b9cfd6ad305ad909e8ff17139111a7c78f01464 (patch)
tree352a033cfd2ab78eab367c81f30b46ec5b886947 /options.c
parente3eb9aa37086f16c0c8c2778dcd8020a39a92564 (diff)
downloadltrace-1b9cfd6ad305ad909e8ff17139111a7c78f01464.tar.gz
Version: 0.3.8
* glibc-2.1 does no longer need `_GNU_SOURCE' defined to use <getopt.h> * Changed description of package; adopted Red Hat's one (thanks to whoever wrote it) * Close all the file descriptors used before executing program (close-on-exec) * Updated copyright file for new location /usr/share/common-licenses/GPL. * Used GNU autoconf instead of "uname" to guess host system type * Install man page in /usr/share/man instead of /usr/man * Added a few functions to /etc/ltrace.conf * Updated list of syscalls and signals to linux-2.2.12 * Fixed bugs in C++ demangle (Morten Eriksen <mortene@sim.no>) * New Standards-Version: 3.0.1 (but keeping docs in /usr/doc)
Diffstat (limited to 'options.c')
-rw-r--r--options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options.c b/options.c
index 57a0f8e..a5b10a6 100644
--- a/options.c
+++ b/options.c
@@ -5,13 +5,12 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
+#include <fcntl.h>
#include <errno.h>
#include <limits.h>
#if HAVE_GETOPT_H
-#define _GNU_SOURCE
#include <getopt.h>
-#undef _GNU_SOURCE
#endif
#include "ltrace.h"
@@ -192,6 +191,7 @@ char ** process_options(int argc, char **argv)
exit(1);
}
setvbuf(output, (char *)NULL, _IOLBF, 0);
+ fcntl(fileno(output), F_SETFD, FD_CLOEXEC);
break;
case 'u': opt_u = optarg;
break;