diff options
author | Juan Cespedes <cespedes@debian.org> | 1999-08-30 19:34:50 +0200 |
---|---|---|
committer | Juan Cespedes <cespedes@debian.org> | 1999-08-30 19:34:50 +0200 |
commit | 1b9cfd6ad305ad909e8ff17139111a7c78f01464 (patch) | |
tree | 352a033cfd2ab78eab367c81f30b46ec5b886947 /options.c | |
parent | e3eb9aa37086f16c0c8c2778dcd8020a39a92564 (diff) | |
download | ltrace-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |