lkml.org 
[lkml]   [1998]   [Jan]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 16 Jan 1998 16:15:40 +1100
FromRichard Gooch <>
SubjectRe: kernel creating /dev/pts/XX
C. Scott Ananian writes:
> On Thu, 15 Jan 1998 Roger Espel Llima <espel@llaic.u-clermont1.fr> wrote:
> 
> > > I would normally propose having a daemon do these things, but since it
> > > is so simple, we might as well do it right in the kernel.
> > 
> > I'm with you on that one.  The generic cry of "do it in userspace" is
> > good as a general rule, but here it makes it a lot more complicated for
> > nothing.  A daemon, whether it runs all the time or not, takes a lot
> > more resources than the little kernel code needed for this.
> 
> I disagree.  I don't like the kernel playing with magic files.  Someone
> else will have to implement this if they want it.

I agree. The kernel should not create files on discs unless
explicitely asked to do so via the open(2)/mkdir(2)/mknod(2)
family. Nor should it fiddle the permissions of stuff on disc unless
explicitely asked to do so.
It may be easy to do, but it's really unclean, IMO.

				Regards,

					Richard....
\
 
 \ /
  Last update: 2005-03-22 12:41    [W:1.244 / U:0.090 seconds]
©2003-2008 Jasper Spaans