Re: many tails

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

 



On 07Dec2006 11:10, Mike - EMAIL IGNORED <m_d_berger_1900@xxxxxxxxx> wrote:
| PROBLEM SOLVED but there may be another.  I have confirmed
| Andy's description. The reason that I had many persistent
| tail processes is that I run swatch with the --tail-file
| option.  When I kill a swatch process, it leaves a tail
| processes behind, but the tail process no longer receives
| input.  (I discovered this the hard way -- a day after
| killing all my tails, I found that my swatch was no longer
| reporting.)
| 
| The new problem:  what to do (automatically) to eliminate the
| tail when I kill a swatch?

Well, first up it sounds like a bug in swatch. Report it!

You could try to find out if swatch is in its own process group.
If you started it from an interactive shell, or it is in its own
terminal "stand alone", as it were, then this is probably true.

Evn more helpfully, it is probably the process group leader, so the
number of the process group is the same as swatch's pid.

Just as you kill a process with

  kill -s 15 pid-number

you can kill a process group with a negative number.

  kill -s 15 -pgroup-number

 ... but ... you need to disam

You need to use "-s signal' instead of "-signal" because otherwise the
"-pgroup-number" looks like a signal.

Example:

  kill -s 15 -1234

to kill process group "1234" with signal 15 (SIGTERM, the default
signal).

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

At some point, we must recognize that the judiciary is not omniscient, and
that all problems do not require a remedy of constitutional proportions.
        - Justice Clarence Thomas

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux