Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!amdahl!uunet!mcvax!enea!kth!draken!duvan!drs-ano From: drs-ano@duvan.nada.kth.se (Gunnar Nordmark) Newsgroups: comp.sys.amiga Subject: Re: I Want my ZombieMsg Back!!! Summary: *arghv[]!!!!! Keywords: ARP ASyncRun Message-ID: <425@draken.nada.kth.se> Date: 24 Jun 88 09:36:11 GMT References: <421@draken.nada.kth.se> <423@draken.nada.kth.se> Sender: news@nada.kth.se Reply-To: G@epsilon.stacken.kth.se (Gunnar Nordmark) Organization: The Royal Inst. of Techn., Stockholm Lines: 33 In article <423@draken.nada.kth.se> G@epsilon.stacken.kth.se (Gunnar Nordmark) writes: >There is nothing wrong with ASyncRun(), it runs like a champ. (Thank God) ^^^^^^^^^^^^^^^^^ POOF!! When you beleive in something deeply, it's quite annoying to finally realize that it was all a dream. There is a definitive (and deadly) problem with ASyncRun - here goes: First you explicitly opens an input and an output file for the new process. Then you passes them along in the PCB with pcb_Control set to PRF_SAVEIO. Also you supply a ZombieMsg, so you'll know when the process has completed. When it has, you close the the filehandl.... [Oh, it's you again!] The Input file (at least) that you supply is garbled in some way. You can't use it or close it or do anything with it, it's a one way ticket. The SAVEIO flag is devoted for this sole purpose, but the only case where it actually works is when you supply your *own* standard input. If you open a new standard input for the process you guru severly if you try to close it when the new process has completed. Maybe it's a bug in AmigaDOS, I don't know. But I don't appreciate it. It took me over 12 hours in a row (=no food) to find this bug so now I have lost about all of my former enthousiasm over ASyncRun. But that can be changed! Has anyone any suggestions/workarounds for this? (Uptil now this has been a one man discussion, but the articles will reach the rest of you RSN :-) SNAIL: Gunnar Nordmark VOICE: (+46) 8 - 755 42 52 Nora strand 5 S-182 34 DANDERYD EMAIL: G@epsilon.stacken.kth.se SWEDEN nordmark@vaxkab.sunet.se