Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!derek From: derek@rsch.WISC.EDU (Derek Zahn) Newsgroups: comp.sys.amiga Subject: MANX Multitasking Message-ID: <3194@rsch.WISC.EDU> Date: Wed, 4-Feb-87 11:32:30 EST Article-I.D.: rsch.3194 Posted: Wed Feb 4 11:32:30 1987 Date-Received: Sat, 7-Feb-87 04:40:47 EST Distribution: comp Organization: U of Wisconsin CS Dept Lines: 42 Is there anyone out there who has a MANX C program that spawns a child process and then communicates with it? I have been trying this and have not had any success -- the parent never gets the reply to the WB startup message. I have a program, written at Commodore, from one of the Fish disks, that is supposed to do this, but it apparently was not written with Manx C in mind. It pays little attention to the actual return types of functions [for example (I don't know if this is really a problem since no changes of mine helped much), the program sets struct MsgPort *littleProc = CreateProc(name, 0, segment, 5000);. My documentation says that CreateProc returns a struct Process *, and the first field of the Process structure is not the MsgPort structure, but the Task structure....] and accesses stdout and stderr in a manner that makes Manx barf (even with that fixed so that the program compiles, it crashes the Amiga). BTW, how does one send the parent's stdout and stderr to the child in Manx? Is there a less contorted way to get debugging output from child processes? Fixing the problem in brackets above stopped the program from crashing the machine but the parent process still hangs waiting for a reply from child. I also tried to adopt a sample program from _Inside_the_Amiga_ but it did similar stdout things, similarly ran roughshod over return types, didn't even call its OWN subroutines with the correct number of arguments, and with all this fixed worked no better. I am running version 1.1 of the system (I think -- I use the 1.1 kickstart because if I use 1.2 with the distributed Manx disk, 'cc' won't write '.o' files. I would rather run 1.2 -- does any Manx C guru know how to do that???) and Manx version 3.20a. My Amiga has 512K and an external df. Apologies in advance for any blatant ignorance, and any ideas or help would be greatly appreciated. derek -- Abstract: Derek Zahn @ wisconsin Usenet: ...!{allegra,heurikon,ihnp4,seismo,sfwin,ucbvax}!uwvax!derek Arpa Internet: derek@rsch.wisc.edu