home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st.tech
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!cs.tu-berlin.de!ki
- From: ki@cs.tu-berlin.de (Karsten Isakovic)
- Subject: Re: MiNT ptys
- Message-ID: <1992Jul22.212810.25490@cs.tu-berlin.de>
- Keywords: MiNT
- Sender: news@cs.tu-berlin.de
- Organization: Technical University of Berlin, Germany
- References: <mfg.711497130@gmd.de> <1992Jul20.072258.19480@cs.tu-berlin.de> <mfg.711660187@gmd.de>
- Date: Wed, 22 Jul 1992 21:28:10 GMT
- Lines: 27
-
- In article <mfg.711660187@gmd.de> mfg@gmd.de (Martin Gergeleit) writes:
- >You are right with the analysis of my problem. But I think there is another
- >solution to it. With MiNTs call Fcntl(..., F_SETFD) you can force a file
- >handle to be inherited to Pexeced childs. If the pty now is created at DAs boot-
- >time, it will be inherited to all GEM programs (and their DAs).
-
- But all processes 'loose' one file-handle... Shure it will work, but
- the method with a second 'sub-process' does not have this restriction.
-
- A second problem occurs with the memory, the DA allocats while another GEM
- pogram is running. If the process terminates, the memory is freed. This
-
- And the last big problem that you will meet (when continuing in the DA/xterm-
- quest...) is that a process that was started under the desktop in your xterm
- clone is in the sleeping state after you start a new GEM process ;-)
-
- >These two problems should be handled by starting the TTP with the mode 100 of
- >MiNTs Pexec, I think. (correct me if I'm wrong).
-
- This did not work for me... If you spawned the process while in the desktop,
- the new processes are childs of the desktop. When starting a new GEM-process,
- the desktop was sleeping (it? used pexec(0)...) an so did his children.
- (I am not 100% shure of this.. In my DA this migt have happened because the
- output pipe of the paralell process was full, because the DA looked after
- a 'different' file-handle to read from...)
-
- Greetings, Karsten
-