Monday, January 28, 2013

Re: [LINUX_Newbies] Re: Problem 6: Small questions

 


Problem 6: Small questions
Good morning
Thank You for help.
Di 29 Jan 2013 07:36:41 CET

> one is a suggestion, even a request- "Please kill PID 914".
> The other one is a command barked by a drill instructor with a pistol in
> his hand.
> You WILL do it, and you WILL do it NOW.
>

That is one way of looking at it. More accurately 15 is SIGTERM which
attempts to terminate a process using its normal shutdown routines. 9 is
SIGKILL which abruptly ends the process with no graceful exit routines
called. Usually if a process has gone off the rails you've no choice but
to kill it. I don't even waste my time typing kill -15 anymore. I mean
if the process was behaving I wouldn't be trying to kill it!
*
Question:
What is going wrong
if kill is not working:
pidof firefox then Id 1234
kill 1234
pidof firefox
and task 1234 is still around.
Why Linux cannot kill firefox?

To make this post useful people should be aware that X Window has its
own process killing mechanism called:

xkill

It turns your cursor into a skull and crossbones, which is pretty cool,
then you simply click on the offending window with your Jolly Rodger
cursor and end it.

$ man xkill

For more information.

*
Sorry
I could not understand this.

This is the result of
man xkill:

NAME
xkill - kill a client by its X resource

SYNOPSIS
xkill [-display displayname] [-id resource] [-button number]
[-frame]
[-all]

DESCRIPTION
Xkill is a utility for forcing the X server to close
connections to
clients. This program is very dangerous, but is useful for
aborting
programs that have displayed undesired windows on a user's
screen. If
no resource identifier is given with -id, xkill will display a
special
cursor as a prompt for the user to select a window to be killed.
If a
pointer button is pressed over a non-root window, the server
will close
its connection to the client that created the window.

OPTIONS
-display displayname
This option specifies the name of the X server to contact.

-id resource
This option specifies the X identifier for the resource
whose
creator is to be aborted. If no resource is
specified, xkill
will display a special cursor with which you should
select a
window to be kill.

-button number
This option specifies the number of pointer button that
should
be used in selecting a window to kill. If the word
"any" is
specified, any button on the pointer may be used. By
default,
the first button in the pointer map (which is usually
the left‐
most button) is used.

-all This option indicates that all clients with top-level
windows
on the screen should be killed. Xkill will ask you to
select
the root window with each of the currently defined
buttons to
give you several chances to abort. Use of this
option is
highly discouraged.

-frame This option indicates that xkill should ignore the
standard
conventions for finding top-level client windows
(which are
typically nested inside a window manager window), and
simply
believe that you want to kill direct children of the root.

CAVEATS
This command does not provide any warranty that the application
whose
connection to the X server is closed will abort nicely, or
even abort
at all. All this command does is to close the connection to
the X
server. Many existing applications do indeed abort when their
connec‐
tion to the X server is closed, but some can choose to continue.

What is the meaning of the word "server"?

Regards
Sophie

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (11)
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.

__,_._,___

No comments:

Post a Comment