[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unable to close a file descriptor using exec command
From: |
Venkat Raman |
Subject: |
Unable to close a file descriptor using exec command |
Date: |
Sun, 3 Mar 2024 22:29:17 +0000 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
uname output: Linux kube1 6.7.6-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Feb
23 18:27:29 UTC 2024 x86_64 GNU/Linux
Machine Type: x86_64-redhat-linux-gnu
Bash Version: 5.2
Patch Level: 26
Release Status: release
Description:
[Unable to close a file descriptor created using bash exec ]
Repeat-By:
exec 2>&test1 commands freezes the terminal and unable to close the fd.
Fix:
[Is there a sane way to close the fd?]
- Unable to close a file descriptor using exec command,
Venkat Raman <=