From: Markus H. <mh...@as...> - 2002-05-23 09:17:46
|
xterm works again thx, markus > -----Original Message----- > From: Jeff Dike [mailto:jd...@ka...] > Sent: Wednesday, May 22, 2002 7:05 AM > To: use...@li... > Subject: Re: [uml-devel] uml-patch-2.4.18-28=20 >=20 >=20 > jd...@ka... said: > > It also should fix a crash when checking the host's SIGIO.=20 >=20 > I didn't fix that crash. I only made it worse. >=20 > The patch below is the -28 to -29 patch which actually does fix it. >=20 > Jeff >=20 > --- cvs/linux/arch/um/Makefile Tue May 21 18:16:26 2002 > +++ um/arch/um/Makefile Tue May 21 23:54:36 2002 > @@ -2,7 +2,7 @@ > =20 > include arch/$(ARCH)/Makefile-$(SUBARCH) > =20 > -EXTRAVERSION :=3D $(EXTRAVERSION)-28um > +EXTRAVERSION :=3D $(EXTRAVERSION)-29um > include/linux/version.h: arch/$(ARCH)/Makefile > =20 > # Recalculate MODLIB to reflect the EXTRAVERSION changes=20 > (via KERNELRELEASE) > --- cvs/linux/arch/um/kernel/sigio_user.c Tue May 21 18:16:26 2002 > +++ um/arch/um/kernel/sigio_user.c Tue May 21 23:53:22 2002 > @@ -35,14 +35,13 @@ > int err; > }; > =20 > -int openpty_cb(void *arg) > +void openpty_cb(void *arg) > { > struct openpty_arg *info =3D arg; > =20 > info->err =3D 0; > if(openpty(&info->master, &info->slave, NULL, NULL, NULL)) > info->err =3D errno; > - return(0); > } > =20 > void __init check_sigio(void) > @@ -50,7 +49,7 @@ > struct sigaction old, new; > struct termios tt; > struct openpty_arg pty; > - int master, slave, flags, n, err; > + int master, slave, flags, n; > char buf[512]; > =20 > if(access("/dev/ptmx", R_OK) && access("/dev/ptyp0", R_OK)){ > @@ -59,15 +58,17 @@ > return; > } > printk("Checking that host ptys support output SIGIO..."); > - err =3D run_helper_thread(openpty_cb, &pty, CLONE_VM |=20 > CLONE_FILES,=20 > - NULL); > + > +#ifdef notdef > + err =3D run_helper_thread(openpty_cb, &pty, CLONE_FILES, NULL); > if(err < 0){ > printk("run_helper_thread failed, errno =3D %d\n", err); > return; > } > - > +#endif > + tracing_cb(openpty_cb, &pty); > if(pty.err){ > - printk("openpty failed, errno =3D %d\n", err); > + printk("openpty failed, errno =3D %d\n", pty.err); > return; > } > =20 >=20 >=20 > _______________________________________________________________ >=20 > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >=20 > _______________________________________________ > User-mode-linux-devel mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel >=20 |