🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1311

Re: DosExitList Hangs Process (OS/2 V1.3)

#1311
From: David Bolen
Date: Tue, 01 Sep 1992 11:23
25 lines
1847 bytes
In article <1992Sep1.135214.6864@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:

>>It's a pain, but try backing out to simple DosWrite's to stdout (you should
>>be able to use "fileno(stdout)", or just "(HFILE)1" I think).  Or, you can
>>create your own version of printf that is safe to call from the exit handler
>>(ie: just uses OS/2 system calls).
>
>It's probably easier to use VioWrtTTY calls.  I can post the syntax if
>you need it.

That's certainly another option, although I would think it's about the same
amount of pain to the programmer (you need to do your own formatting and
length determination in either case - both calls just take a buffer and
length).  Also, you can't redirect the output of Vio calls to a file, so if if
the process was ever run detached or in the background you wouldn't be able to
catch exit messages.

--
-- David
--
/-----------------------------------------------------------------------\
 \              David Bolen             \  Internet: db3l@ans.net      /
  |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
 / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
\-----------------------------------------------------------------------/
Technical Details
Message-ID: <1992Sep01.152202.21981@ans.net>
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!news.ans.net!ans.net!db3l
References: <1992Aug31.124258.980@beckman.com> <1992Aug31.215344.36276@ans.net> <1992Sep1.135214.6864@njitgw.njit.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!news.ans.net!ans.net!db3l
From: db3l@ans.net (David Bolen)
Subject: Re: DosExitList Hangs Process (OS/2 V1.3)
Sender: news@ans.net (News Administrator)
Message-ID: <1992Sep01.152202.21981@ans.net>
In-Reply-To: dic5340@hertz.njit.edu's message of 1 Sep 92 13: 52:14 GMT
Date: Tue, 1 Sep 1992 11:23:27 GMT
References: <1992Aug31.124258.980@beckman.com> <1992Aug31.215344.36276@ans.net>
 <1992Sep1.135214.6864@njitgw.njit.edu>
Organization: Advanced Network & Services, Inc. - Elmsford, NY
Lines: 25