9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] a side effect of dontkill listen
@ 2010-10-13 16:12 Yaroslav
  0 siblings, 0 replies; only message in thread
From: Yaroslav @ 2010-10-13 16:12 UTC (permalink / raw)
  To: 9fans

Cpurc on sources disables notes for a few processes including
listen(8) – to save them from being killed when system runs out of
memory. This, however, has a side effect: spawned services like
sshserve inherit the bits from listen, thus missing notes about rc
exits and waiting forever, causing the processes to accumulate.

To stop them to accumulate immediately, enable notes for listen by
running as hostowner:
	kill listen | awk -F'>' '{print "chmod u+w", $2}' | rc -v

Then remove listen from /bin/cpurc:/^dontkill line.

- Yaroslav



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-13 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 16:12 [9fans] a side effect of dontkill listen Yaroslav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).