You are not logged in.
If I start a terminal, run the command
conkyand then exit the terminal, then conky appears again after a few seconds?! How is this possible? All terminals do create a pseudo terminal, which should kill all processes, when it is closed!
![]()
Last edited by ying (2011-10-21 12:14:59)
Offline
I have several aliases that tell e.g. wget to try reconnect and keep downloading - 'wget -c' - and I can't kill it via ^C because it immediately reappears. I know nothing about conky, but check what exactly is being executed when you type 'conky':
[karol@black ~]$ type wget
wget is /usr/bin/wget
[karol@black ~]$ type w
w is aliased to `wget -c --limit-rate=200K'Offline
Hmm but I only execute the conky binary. But the strange think is, how does conky breaks out of the pty(pseudo terminal)?
Offline
Do you have a config file that is read & executed by the conky binary?
You can use e.g. htop to see what's being executed by what (use the tree view) - you can try to use htop to kill that stubborn conky too.
Offline
AFAIK conky immediately forks a new process upon the TERM singnal. Or even right at the beginning? Cant try now...
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Yeah but even if you fork a new process and call also setsid, it should be killed by closing the pty device!?
Offline
Yeah but even if you fork a new process and call also setsid, it should be killed by closing the pty device!?
When called with nohup, then no.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Is there a way to reset the nohup signal for conky?
Offline
Try adding the setting "background false" to your .conkyrc. This should prevent conky to fork to the background.
Offline
Hmm. No that is not what I want. I am running a complete Desktop Environment in a pseudo terminal. My goal is to kill all this running processes, when I close it. Is there a possibility to do that?
Offline
Conky will exit, as soon X is terminated.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Yes, but I am programming a login manager and my goal is to save time. So I don't want to restart X. All is functioning. Only this conky
. I just have seen, that the output of ps -A tells me, that conky runs in a pty (ex.: pty/0). If I stop the pty, it changes to an '?'. So before I close the pseudo terminal, I could collect all processes, which do run in the pty and then kill them.
Edit: But there is a problem. How do I know, which new created ptys (New Terminals started in the DE) are belonging to the the main pseudo terminal process?
Edit2: Conky is ignoring the SIGHUP Signal, when the process session leader sends it out. But I could scan the pids and check their parent pids. That should work.
![]()
Last edited by ying (2011-10-21 19:03:31)
Offline