Re: Lots of bash processes SOLVED
Worik Stanton <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.dunedin.general |
|---|---|
| Message-ID | <[email protected]> |
On 29/04/14 14:28, Daniel Beer wrote:
> On Tue, Apr 29, 2014 at 01:51:49PM +1200, Worik Stanton wrote:
>> I have a VPS at Digital Ocean I use for various little fun things.
>>
>> But I have a problem: I am seeing 'bash' processes multiply like
>> rabbits. No bash process I start ever stops unless I specifically exit.
>> I would have expected a bash process to die when the attached terminal
>> goes away, by default. But clearly not.
>>
>> Is there a way I can change bash's default behaviour so that it dies
>> with the terminal it is attached to?
>
> This is the default behaviour -- the loss of a terminal causes SIGHUP to
> be delivered to all attached processes, and bash's default response to
> SIGHUP is to exit.
>
> Are these processes lying around from old SSH sessions which have gone
> dead? If that's the case, you should set TCP keep-alive on the VPS to
> periodically poke old TCP connections.
>
Exactly. It was old ssh sessions.
Using tmux on the VPS and reconnecting with 'tmux attach' has fixed my
problem.
cheers
W
> Cheers,
> Daniel
>
--
The only true evil is turning people into things....
Granny Weatherwax
[email protected] 021-1680650, (03) 4821804
Aotearoa (New Zealand)
_______________________________________________
DunLUG mailing list
[email protected]
http://lists.ethernal.org/listinfo/dunlug
DunLUG Wiki - http://dunlug.kallisti.net.nz/
signature.asc
(application/pgp-signature, 538 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTbdA4AAoJEDgltBsVWtVcfj4H/iigJYOFewBBpBxPfaqXOSQ+ RmT8EbZkWpcdy1cilKv38L7JalzEzP+zdSwykvC5U8IWXCvmNMpS5/mf9JiBcZAF i/Xlyuc1vDd3b+v/xOxcKFV30ds6vcg5bOMzNvOLHsoBJKlaGrDNSoBuSTTdK678 vEyLU8/BCBR6vcC8zMQWus1e8BKAnZBZDzKZPZ8EnFPKK54DXI/63R40v6OwQTJG SEfesDhuneHVYNUVgu3x4kwJ75PoNx/dmNmpMGe1iJEQYaSnH78jcRM7etrEa+Q5 FN9AIFGClrqmFfpye+DCEXjZTRoz0Lz++87kFtpAu1uUq0vpb8Tdt3tnpegjOgA= =yCMJ -----END PGP SIGNATURE-----