Re: scriptlets & fd 17?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Olin Oden wrote:
On Wed, 09 Feb 2005 08:56:01 -0800, Hal Wine <hal@xxxxxxxxxxxxxx> wrote:

Apparently, fd 17 is open on the original terminal when the RPM
scriptlets are executed.

Update: it's only fd 17 in the post scriptlet, fd 7 in the others.

This is a bug in the daemon in question.

Yes, the daemon is "sloppy" at best, and I'm filing a bug report about that, but.

That said I don't ever recall rpm using fd 17, so its probably something in your environment that is opening that fd, and when rpm is started it inherits it.

Unfortunately not. I made a dummy rpm with just the following for each scriptlet:
echo "in pre for %{version}: '$1'"
/usr/sbin/lsof -p $$ | grep -w CHR


Here's the results:
[root@rb482-vmware root]# /usr/sbin/lsof -p $$ | grep -w CHR
bash 1060 root 0u CHR 136,0 2 /dev/pts/0
bash 1060 root 1u CHR 136,0 2 /dev/pts/0
bash 1060 root 2u CHR 136,0 2 /dev/pts/0
[root@rb482-vmware root]# rpm -Uvh /tmp/fd17-1.0Beta1-0.i386.rpm
Preparing... ########################################### [100%]
in pre for 1.0Beta1: '1'
sh 1164 root 1u CHR 136,0 2 /dev/pts/0
sh 1164 root 2u CHR 136,0 2 /dev/pts/0
sh 1164 root 7u CHR 136,0 2 /dev/pts/0
1:fd17 warning: user hwine does not exist - using root
warning: group hwine does not exist - using root
########################################### [100%]
in post for 1.0Beta1: '1'
sh 1168 root 1u CHR 136,0 2 /dev/pts/0
sh 1168 root 2u CHR 136,0 2 /dev/pts/0
sh 1168 root 17u CHR 136,0 2 /dev/pts/0
[root@rb482-vmware root]# rpm -e fd17
in preun for 1.0Beta1: '0'
sh 1175 root 1u CHR 136,0 2 /dev/pts/0
sh 1175 root 2u CHR 136,0 2 /dev/pts/0
sh 1175 root 7u CHR 136,0 2 /dev/pts/0
in postun for 1.0Beta1: '0'
sh 1179 root 1u CHR 136,0 2 /dev/pts/0
sh 1179 root 2u CHR 136,0 2 /dev/pts/0
sh 1179 root 7u CHR 136,0 2 /dev/pts/0
[root@rb482-vmware root]#



rpm version 4.2.3-10 from RHEL 3 ES update 3

--Hal

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux