watch(8) stuck in devdrn
keramida at ceid.upatras.gr
Thu May 31 18:08:01 UTC 2007
On 2007-05-31 18:38, Robert Watson <rwatson at freebsd.org> wrote:
> I was using watch(8) this afternoon, and on trying to quit, ran into this:
> peppercorn:~> ps axl | grep watch
> 0 14200 14194 0 -8 0 3416 1056 devdrn D p2- 0:00.01 watch -W tt
> It was running on a pty, but the target tty was ttyv1.
If you have kern.pts.enable=1 you may have to use:
Without this patch and kern.pts.enable=1 all ptys seem to get stuck in
devdrn on process exit. AFAIK, Kostik Belousov and Tor Egge know this
and are already working on a fix:
% Date: Fri, 6 Apr 2007 13:10:48 +0300
% Message-ID: <20070406101048.GK308 at deviant.kiev.zoral.com.ua>
% From: Kostik Belousov
% Subject: Re: pty releasing but with kern.pts.enable=1?
% To: Giorgos Keramidas
% [-- The following data is signed --]
% On Fri, Apr 06, 2007 at 03:45:29AM +0300, Giorgos Keramidas wrote:
% > Hi Konstantin,
% > Kris Kennaway suggested I contact you, to ask about a possible pty bug
% > in FreeBSD CVS HEAD. Without the patch below, every time I exit from a
% > process using pty's the process blocks forever.
% > http://people.freebsd.org/~keramida/ptsbug.diff
% > Do you have any idea why dev->si_threadcount never reaches zero for pty
% > devices, or how I can statr troubleshooting this further?
% Yes, the issue is known (drivers must not call destroy_dev() from d_close
% method). The patch is being worked on with the help of Tor Egge.
% [-- End of signed data --]
More information about the freebsd-current