🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: questions on os/2

#2500
From: Sandy Rockowitz
Date: Mon, 01 Apr 1991 21:01
22 lines
1430 bytes
In article <1991Apr1.153428.13292@watson.ibm.com>,
thierry@watson.ibm.com (Thierry Samama) writes:
>
>DosKillProcess only "flags the process to terminate", according to the
>OS/2 1.2 CP Reference. So if the process has set a signal handler for
>SIGTERM (using DosSetSigHandler) and the signal handler refuses to yield,
>the process will not terminate. To the best of my knowledge, there is no way
>to work around this.
>

Regarding the use of signals and termination, I've been having
difficulty separating process termination (SIGTERM) from
Ctrl-Break (SIGBREAK).  If I register a signal handler for
Ctrl-Break and Ctrl-C using DosSetSigHandler, that process
receives termination requests (e.g. geneated by the End Task
button on the Task Manager), and these are marked to my
signal handler as being Ctrl-Break, not process termination.

This was happening under EE 1.2.  Haven't yet retested under 1.3.

Sandy Rockowitz
gd.sar@forsythe.stanford.edu
Technical Details
Message-ID: <1991Apr1.210146.15929@morrow.stanford.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!stanford.edu!morrow.stanford.edu!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!stanford.edu!morrow.stanford.edu!news
From: GD.SAR@forsythe.stanford.edu (Sandy Rockowitz)
Newsgroups: comp.os.os2.programmer
Subject: Re: questions on os/2
Message-ID: <1991Apr1.210146.15929@morrow.stanford.edu>
Date: 1 Apr 91 21:01:46 GMT
Sender: news@morrow.stanford.edu (News Service)
Distribution: usa
Organization: Data Center, Stanford University, California, USA
Lines: 22