home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4635 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.8 KB  |  39 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!destroyer!gatech!news.ans.net!ans.net!db3l
  3. From: db3l@ans.net (David Bolen)
  4. Subject: Re: DosExitList Hangs Process (OS/2 V1.3)
  5. Sender: news@ans.net (News Administrator)
  6. Message-ID: <1992Sep01.152202.21981@ans.net>
  7. In-Reply-To: dic5340@hertz.njit.edu's message of 1 Sep 92 13: 52:14 GMT
  8. Date: Tue, 1 Sep 1992 11:23:27 GMT
  9. References: <1992Aug31.124258.980@beckman.com> <1992Aug31.215344.36276@ans.net>
  10.     <1992Sep1.135214.6864@njitgw.njit.edu>
  11. Organization: Advanced Network & Services, Inc. - Elmsford, NY
  12. Lines: 25
  13.  
  14. In article <1992Sep1.135214.6864@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:
  15.  
  16. >>It's a pain, but try backing out to simple DosWrite's to stdout (you should
  17. >>be able to use "fileno(stdout)", or just "(HFILE)1" I think).  Or, you can
  18. >>create your own version of printf that is safe to call from the exit handler
  19. >>(ie: just uses OS/2 system calls).
  20. >
  21. >It's probably easier to use VioWrtTTY calls.  I can post the syntax if
  22. >you need it.
  23.  
  24. That's certainly another option, although I would think it's about the same
  25. amount of pain to the programmer (you need to do your own formatting and
  26. length determination in either case - both calls just take a buffer and
  27. length).  Also, you can't redirect the output of Vio calls to a file, so if if
  28. the process was ever run detached or in the background you wouldn't be able to
  29. catch exit messages.
  30.  
  31. --
  32. -- David
  33. --
  34. /-----------------------------------------------------------------------\
  35.  \              David Bolen             \  Internet: db3l@ans.net      /
  36.   |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
  37.  / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
  38. \-----------------------------------------------------------------------/
  39.