Date: Sun, 18 Jul 2010 08:24:17 +0400 From: Anonymous <swell.k@gmail.com> To: jhell <jhell@DataIX.net> Cc: freebsd-ports@freebsd.org Subject: Re: General note on rc scripts and daemonizing Message-ID: <868w59fmdq.fsf@gmail.com> In-Reply-To: <alpine.BSF.2.00.1007172358320.91719@pragry.qngnvk.ybpny> (jhell@dataix.net's message of "Sun, 18 Jul 2010 00:02:09 -0400") References: <20100717105658.GV1742@hoeg.nl> <alpine.BSF.2.00.1007171823210.26551@pragry.qngnvk.ybpny> <alpine.BSF.2.00.1007172358320.91719@pragry.qngnvk.ybpny>
next in thread | previous in thread | raw e-mail | index | archive | help
jhell <jhell@DataIX.net> writes: > Also another use with the case above. Running top(1) instead of su(1) > you should see the same symptoms. > Use `-f' option in daemon(8). Otherwise it'd still spam to tty. $ daemon top $ procstat -f $(pgrep top) PID COMM FD T V FLAGS REF OFFSET PRO NAME 36719 top cwd v d -------- - - - /home/blah 36719 top root v d -------- - - - / 36719 top 0 v c rw------ 9 686053 - /dev/pts/3 36719 top 1 v c rw------ 9 686053 - /dev/pts/3 36719 top 2 v c rw------ 9 686053 - /dev/pts/3 36719 top 3 v c r------- 1 0 - /dev/null 36719 top 4 v c r------- 1 0 - /dev/null > I should probably also state that using the -f flag to ssh(1) without > daemon(1) does not exhibit any of these symptoms.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868w59fmdq.fsf>