Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 1995 10:39:59 +0000 ()
From:      Michael Smith <>
To: (Drew Morone)
Subject:   Re: Processes -will- -not- die!
Message-ID:  <>
In-Reply-To: <> from "Drew Morone" at Dec 4, 95 08:12:03 pm

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Drew Morone stands accused of saying:
> For some reason, some of the user apps on my system will get hung, and 
> won't die when somebody exits unceremoniously. I of course have to go in 
> and kill the process, which proceeds to suck up all of the CPU. This 
> seems to happen most with "pine" and "tin", but will happen with other 
> software as well.

It's a bug in the applications, where they're not properly checking the
return value of the read() system call, and end up in an endless loop
trying to read input.  Are 

> I thought of setting a trap to kill the processes when a hangup signal is 
> sent, but that should really be happening anyway,  when someone gets 
> disconnected.   

If you check, you'll probably find that the applications already trap HUP.

> I'm running 2.1.0-RELEASE, on a P100 with 64Megs of RAM. If there's any 
> other info I should include, please tell me.

Are you running with applications from the FreeBSD ports collection, or did
you build these guys yourself?  One would hope that there are patches for
these applications to fix this behaviour.

> |||   `_ _'            Drew Morone    |||          `_ _'  |||

]] Mike Smith, Software Engineer    [[
]] Genesis Software              [[
]] High-speed data acquisition and      (GSM mobile) 041-122-496        [[
]] realtime instrument control          (ph/fax)  +61-8-267-3039        [[
]] "Who does BSD?" "We do Chucky, we do."                               [[

Want to link to this message? Use this URL: <>