Re: [hatari-devel] Fforce() fails with GEMDOS drive emulation

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Fri, 15 Mar 2013 12:37:43 +0200
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:

> Hi,
> 
> On torstai 14 maaliskuu 2013, Thomas Huth wrote:
> > schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> > IIRC there is an official method for determine the current running
> > GEMDOS process - the "p_run" system variable. Hatari already keeps a
> > pointer to its location in the "act_pd" variable. So you could try
> > to find out the corresponding process via that variable?
> 
> When testing, that seems to work OK, so I commited the change:
> http://hg.tuxfamily.org/mercurialroot/hatari/hatari/rev/02a9995a2e57
> 
> While the code should handle cases where redirected file handles
> are inherited to child processes, I didn't have any test-case
> for testing that.  Something to test that case would be appreciated.

Isn't this the default case when redirecting stdio from a shell? I.e.
you could run a TTP program from a shell like MUPFEL or something
similar and pipe its output to a file on the GEMDOS hard disk?

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/