Subject: Re: Query: 3100 graphics-console cursor patch and X11?
To: None <jonathan@DSG.Stanford.EDU>
From: maximum entropy <entropy@zippy.bernstein.com>
List: port-pmax
Date: 11/15/1997 21:48:53
>From: maximum entropy <entropy@zippy.bernstein.com>
>
>root       215 12.0  0.8   112  112 D0  R+   12:37PM    0:00.22 grep xfs 
>root       185  0.0  6.4  1004  904 D0- I    12:31PM    0:05.14 xfs 
>
>The only thing that looks vaguely suspicious to me is that xfs's
>controlling terminal was revoked.

And it looks like that's a key point.  If I run this small program
instead of "xfs $xfs_flags &" from /etc/rc, everything works OK.

#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>

int
main(int argc, char *argv[])
{
	setsid();
	system("xfs &");
	exit(0);
	return 0;
}

Cheers,
entropy

--
entropy -- it's not just a good idea, it's the second law.