[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trap reset for multiple signals
From: |
struebinc |
Subject: |
trap reset for multiple signals |
Date: |
Wed, 1 Sep 2004 15:50:13 +0200 |
Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.8
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc'
-DCONF_OSTYPE='sol
aris2.8' -DCONF_MACHTYPE='sparc-sun-solaris2.8' -DCONF_VENDOR='sun'
-DLOCALEDIR=
'/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I.
-I./include
-I./lib -I./lib/intl
-I/data/packages/build/bash/3.0/src/bash-3.0/lib/intl -g -
O2
uname output: SunOS wcwe00ho.post.ch 5.8 Generic_108528-29 sun4u sparc
SUNW,Ultr
a-5_10
Machine Type: sparc-sun-solaris2.8
Bash Version: 3.0
Patch Level: 0
Release Status: release
Description:
By setting traps in the /etc/profile we use : trap "" 2 3.
At the end of of the profile we reset the trap by : trap 2 3
But the trap still exists.
On bash 2.05 this works fine.
Repeat-By:
root@wcwe00ho# trap
root@wcwe00ho# trap "" 2 3
root@wcwe00ho# trap
trap -- '' SIGINT
trap -- '' SIGQUIT
root@wcwe00ho# trap 2 3
root@wcwe00ho# trap
trap -- '' SIGINT
trap -- '2' SIGQUIT
root@wcwe00ho# trap 3
root@wcwe00ho# trap
trap -- '' SIGINT
root@wcwe00ho# trap 2
root@wcwe00ho# trap
Fix:
Regards Claude
Die Schweizerische Post
Information Technology Services
IT222 Infrastructure Unix Systems
Webergutstrasse 12
CH-3030 Bern (Zollikofen)
E-Mail struebinc@post.ch
- trap reset for multiple signals,
struebinc <=