Solved

Cpu  "runaways"

Posted on 2002-06-25
4
305 Views
Last Modified: 2010-04-20
Since changing from SCO-UNIX to Linux, we noticed that it is easier to produce cpu "runaways". For example, if you start a telnet session to the server, then start the shell utility "top", then ungracefully exit top (by killing the telnet session)...the "top" process continues to run but in what appears to be a race condition (uses all available cpu). I can do this (runaway) also with our propietary app, but some apps/tools do not do this , like netconfig... The "runaways" appear to be pleasent ones, just consiming cpu as it is available (look nasty, but dont seem to load down the system).
0
Comment
Question by:medent
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
> .. look nasty, but dont seem to load down the system
And what is the question?

Probably your shell is configured to hangup background processes, see:
  bash: huponexit
  csh:  hup, nohup
  ksh:  nohup
  sh:   N/A :-)
  zsh:  NO_HUP
0
 

Author Comment

by:medent
Comment Utility
That sure sounds like the answer, but it did not work.  I tried adding shopt -s huponexit to /etc/bashrc, and verified it was really on before starting the test app (netconfig). Perhaps huponexit is broke in bash?
Additional Info:
This problem I am having does not effect the root user, regardless of the shopt settings, only regular users and when I su to root (from a regular user).
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 300 total points
Comment Utility
does root use bash?
do you do a  su root  or  su - root ?
0
 

Author Comment

by:medent
Comment Utility
The problem was caused by having "trap" statement in the .bash_profile. The trap was part of a fu-fu to get an extra password to appear when a user was detected as a dialup modem. I will seek an alternative, and post a seperate question. I learned some valuable info from your input, Thank You .
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now