|Re: [hatari-devel] Fforce() fails with GEMDOS drive emulation|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
Am Fri, 15 Mar 2013 12:37:43 +0200
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> 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:
> 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?