- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- UNIX Signals and Process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2002 05:24 PM
10-07-2002 05:24 PM
UNIX Signals and Process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2002 06:25 PM
10-07-2002 06:25 PM
Re: UNIX Signals and Process
A process may stop responding if it is waiting on something. One good example is a process waiting on it's disk IO request to complete.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2002 06:26 PM
10-07-2002 06:26 PM
Re: UNIX Signals and Process
Any program can deal with a kill signal anyway it wants to--including ignore it. If you wrote the program, then look at the trap handling.
For programs that are supposed to work correctly but hang, this is usually due to I/O, serial I/O or more typically today, LAN I/O. However, LAN is extremely complicated because there are so many methods to communicate over the same wire. Typical LAN problems that cause programs to hang are due to connections that are trashed when someone does not log out properly, or their PC crashes.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2002 06:53 PM
10-07-2002 06:53 PM
Re: UNIX Signals and Process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2002 07:10 PM
10-07-2002 07:10 PM
Re: UNIX Signals and Process
The kill -9 is a force shutdown of a process.
which shuts the process whatever may be the stage.
The other kill options like the kill -15 is a orderly shutdown of a process.
So whenever a kill(9) is given the process is forced to shutdown.
you are right,
If a process hangs during some operation (such as I/O), it cannot die until it is allowed to run.So giving a kill will have no effect on that process.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2002 07:27 PM
10-07-2002 07:27 PM
Re: UNIX Signals and Process
So could someone give me a clue or a wild guess what is the process doing at this moment? There is a case in which the process stops running for more than two hours and then it continues. When it stops, only "kill -9" has an immediate effect, all other signals will have to wait for more than two hours to take effect, when the process resumes running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2002 10:20 PM
10-08-2002 10:20 PM
Re: UNIX Signals and Process
There is a nice tool "tusc" to trace what a process is doing. And with a manual page added as well.
It's showing everything a process does, take your time.
It's downloadable from: FTP Directory /dist/networking/tools/ at ftp.cup.hp.com
Latest version: tusc.7.3.shar
I hope this tool severe's your needs.
Arthur
PS This is not supported by HP, but often used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2002 11:01 PM
10-08-2002 11:01 PM
Re: UNIX Signals and Process
A runaway process (using 100% CPU) due to memory leak usually stops responding to all signals but signal 9
Thanks and Regards
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2002 11:48 PM
10-08-2002 11:48 PM
Re: UNIX Signals and Process
tusc has been considered. But this symptom usually repeats after more than several days of intesive runing under heavy load. I rule out this option because I'm afraid the output will first block the system. Maybe there is someway in this case when using tusc, or another tool is available. Besides, this process have hundreds of threads on HP-UX 11.00.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 03:37 AM
10-09-2002 03:37 AM
Re: UNIX Signals and Process
You cannot catch or ignore SIGKILL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 06:16 AM
10-09-2002 06:16 AM
Re: UNIX Signals and Process
SIGKILL, SIGSTOP
see "man 5 signal" for details.
Apart from these a process/program is free to install its own signal handler to do on arrival of the other signals (almost) whatever it wishes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 12:50 PM
10-09-2002 12:50 PM
Re: UNIX Signals and Process
I guess the point you are looking for is this one:
when a "signal" is sent to a process, this is simply memorized in the receiving process's status information.
It will only terminate (or respond or ignore) dur to that signal as soon as it gets CPU time - if it does not get any (e.g. due to waiting for some slow I/O to finish), it will simply not notice that it is already *dead* (well, until it gets CPU time)...
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 02:43 PM
10-09-2002 02:43 PM
Re: UNIX Signals and Process
Run glance , select the process and see what is it Waiting on (W option). That should give some clue.
HTh
raj