diff options
author | Christopher Faylor <me@cgf.cx> | 2004-01-15 19:51:49 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-01-15 19:51:49 +0000 |
commit | ac02533e08798c85b4b8f3d8422f5c5f4c437031 (patch) | |
tree | 776bab6ccbc3557a95c88f9d9fcc820dc32ccdac /winsup/cygwin/gentls_offsets | |
parent | 6a150987938abfef78f72d0bf4ed6b427b25e040 (diff) | |
download | cygnal-ac02533e08798c85b4b8f3d8422f5c5f4c437031.tar.gz cygnal-ac02533e08798c85b4b8f3d8422f5c5f4c437031.tar.bz2 cygnal-ac02533e08798c85b4b8f3d8422f5c5f4c437031.zip |
* gentls_offsets: Reinstate unlink of temp files.
* fhandler_console.cc (fhandler_console::close): Fix debugging output.
(fhandler_console::fixup_after_fork): Decrement open_fhs prior to call to
fhandler_console::open since this would cause incrementing too much
incrementing in child processes. (Probably needs to be handled more elegantly
someday)
(fhandler_console::fixup_after_exec): Ditto.
Diffstat (limited to 'winsup/cygwin/gentls_offsets')
-rwxr-xr-x | winsup/cygwin/gentls_offsets | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/gentls_offsets b/winsup/cygwin/gentls_offsets index 434707b06..375b66840 100755 --- a/winsup/cygwin/gentls_offsets +++ b/winsup/cygwin/gentls_offsets @@ -5,7 +5,7 @@ open(TLS, $tls) or die "$0: couldn't open tls file \"$tls\" - $!\n"; my $struct = ''; my @fields = (); my $def = ''; -my $tls = join('', <TLS>); +$tls = join('', <TLS>); $tls =~ s/\n[^\n]*gentls_offsets[^\n]*\n(.+)\Z/$1/os; my $pre = $`; substr($tls, 0, length($pre)) = ''; @@ -75,5 +75,5 @@ open(OFFS, "/tmp/$$.a.out|") or die "$0: couldn't run \"/tmp/$$.a.out\" - $!\n"; print TLS_OUT <OFFS>; close OFFS; close TLS_OUT; -# unlink "/tmp/$$.cc", "/tmp/$$.a.out"; +unlink "/tmp/$$.cc", "/tmp/$$.a.out"; exit(0); |