Re: [PATCH] 2.5.68-bk1 crash in devfs_remove() for defpts files

Pavel Roskin (proski@gnu.org)
Mon, 21 Apr 2003 17:45:19 -0400 (EDT)


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-9421-1050961645-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-ID: <Pine.LNX.4.55.0304211743501.3287@marabou.research.att.com>

On Mon, 21 Apr 2003, Christoph Hellwig wrote:

> And you are sure you have the following line in pty.c:
>
> pts_driver[i].flags |= TTY_DRIVER_NO_DEVFS;

Yes, it's in drivers/char/pty.c, line 458.

The complete diff between the clean source and my current tree is
attached.

I have forced another rebuild, but the problem with disappearing /dev/pts
persists.

-- 
Regards,
Pavel Roskin
--=_courier-9421-1050961645-0001-2
Content-Type: text/plain; charset=us-ascii; name="complete.diff"
Content-Transfer-Encoding: base64
Content-ID: <Pine.LNX.4.55.0304211742080.3093@marabou.research.att.com>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="complete.diff"

LS0tIGxpbnV4Lm9yaWcvZHJpdmVycy9jaGFyL3B0eS5jDQorKysgbGludXgv ZHJpdmVycy9jaGFyL3B0eS5jDQpAQCAtNDQ4LDE3ICs0NDgsMTQgQEAgaW50 IF9faW5pdCBwdHlfaW5pdCh2b2lkKQ0KIAkJCWluaXRfd2FpdHF1ZXVlX2hl YWQoJnB0bV9zdGF0ZVtpXVtqXS5vcGVuX3dhaXQpOw0KIAkJDQogCQlwdHNf ZHJpdmVyW2ldID0gcHR5X3NsYXZlX2RyaXZlcjsNCi0jaWZkZWYgQ09ORklH X0RFVkZTX0ZTDQotCQlwdHNfZHJpdmVyW2ldLm5hbWUgPSAicHRzLyVkIjsN Ci0jZWxzZQ0KIAkJcHRzX2RyaXZlcltpXS5uYW1lID0gInB0cyI7DQotI2Vu ZGlmDQogCQlwdHNfZHJpdmVyW2ldLnByb2NfZW50cnkgPSAwOw0KIAkJcHRz X2RyaXZlcltpXS5t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