Solved

Cpu  "runaways"

Posted on 2002-06-25
4
314 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7108696
> .. 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
ID: 7110249
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
ID: 7111753
does root use bash?
do you do a  su root  or  su - root ?
0
 

Author Comment

by:medent
ID: 7113655
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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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