> -----Original Message-----
> From: Paul Powell [mailto:moloch16_at_yahoo.com]
>
> I am writing a custom init program which runs under a
> bootable CD. From withing my init program I start X
> Windows by starting the X Server directly.
>
> pidX = fork();
> if (pidX == 0)
> {
> execl("/usr/X11R6/bin/X", "X", NULL, env);
> exit(0);
> }
>
> Is there a way to automatically start FVWM once X is
> initialized? I don't use xinit so I can't use the
> .Xsession files and such. Is there another way?
from where you fork, after you verify that X runs ok simply fork/exec the
fvwm the same way you forked/execed X, you might want to use -display
option.
> Also, is there a good way to shut X and FVWM down
> besides just killing the processes? I've tried
I think sending TERM signal is a good way (usually 15) (which is killing
in a sense but not as harsh as 9 (KILL))
> killing the processes but something is hanging onto
> the CDROM drive and I can't eject. Linux reports the
> device busy.
use lsof to find out what it is (grep /dev/cdrom or something as the
output of lsof is huge)
erik
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Mar 29 2001 - 12:01:52 BST