>>>
>>> Basically, uxlaunch is doing the following:
>>> 1) activate /dev/tty2
>>> 2) change owner and group of /dev/tty2 to meego user/group
>>> 3) set uid and gid of calling process to meego user/group
>>> 4) setsid /* this always seems to fail but the return value is not
>>> checked?? */
>
> quick reply on this part: setsid() returns a pid_t on success, -1 on error.
> what return value do you see from setsid() ?
It returns -1. xf86OpenConsole does some funny trick to get this to work:
/*
* change to parent process group that pgid != pid so
* that setsid() doesn't fail and we become process
* group leader
*/
if (setpgid(0,ppgid) < 0)
xf86Msg(X_WARNING, "xf86OpenConsole: setpgid failed: %s\n",
strerror(errno));
/* become process group leader */
if (setsid() < 0)
xf86Msg(X_WARNING, "xf86OpenConsole: setsid failed: %s\n",
strerror(errno));
...juerg
> Auke
> _______________________________________________
> MeeGo-dev mailing list
> [email protected]
> http://lists.meego.com/listinfo/meego-dev
>
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev