TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Eric Weigel
from: Ian Timms
date: 1995-04-20 00:56:00
subject: RXASYNC - Serial I/O

On the 03-29-95, Eric Weigel was chatting with Ian Timms:

EW>IT>On the 03-19-95, Peter Fitzsimmons was chatting with Ian Timms:
EW>
[deletia]
EW>
EW>Whoa.  OS/2 sessions started with DosStartSession or WinStartApp do
EW>inherit the file handles of their starter (I will avoid the term
EW>"parent," it seems to be causing confusion)  It doesn't
matter if they
EW>are related or unrelated sessions.  In either case, they are technically
EW>children of the "shell" process, and in either case they inherit file
EW>handles.  Even a detached process, which has no parent, inherits file
EW>handles.

Yep, it was all a bit confusing all right, and the culprit for me was
rather poorly (read total lack of) cross referenced documentation.

I eventually found the nice little piece at the bottom of one page of
the online docs that IBM seems to think is an acceptable fix to a
documentation problem ie. it said the file handles get inherited
across sessions. 

Crikey, if I took that approach to problem resolution, my customers
wouldn't come back for more enhancements and I'd be out of a job!

If IBM spent half as much time cross referencing the OS/2 documentation
as they spend on the MVS & DB2 manuals, OS/2 programmers would be ecstatic.

EW>I know you won't believe me, so try this experiment.
EW>
EW>From an OS/2 window, give the following command:
EW>
EW> type con | start more
EW>
EW>As you type lines into the first window, they will be copied to the
EW>second window (an unrelated session).  When you enter CONTROL-Z or
EW>CONTROL-BREAK in the first window, the second one will close.
EW>
EW>The type command sends output to file handle 1 (stdout)  The more
EW>command, which is running in a separate session, accepts input from
EW>handle 0 (stdin).  The | pipe symbol sets up the file handles for us,
EW>before starting.
EW>
EW>You can have a lot of fun with this.  Try hitting CONTROL-BREAK in the
EW>second window, for instance: see what happens.

I do! I did! And it's bloddy cute!  And having seen that I seem to recall
ages ago doing something along that line with two machines and a null
modem cable under 1.3, easy how one forgets these things.

 Cheers, Ian.

 Internet:itimms{at}ariel.ucs.unimelb.edu.au   CIS:100236,1404   [Team OS/2]
___
 * MR/2 2.1 #141 * What's black and white and read all over? OS/2 user guides!

--- Maximus/2 2.02
* Origin: Bunyip's Cave BBS - +61-3-859-8194 (3:633/379)
SEEN-BY: 620/243 632/103 341 348 363 633/379 635/503 640/820 690/660 711/409
SEEN-BY: 711/410 413 430 807 808 809 934 949 955 712/515 713/888 800/1
SEEN-BY: 7877/2809
@PATH: 633/379 632/348 711/409 808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.