Re: can gprolog set a signal handler?
Daniel Diaz <[email protected]> Mon, 19 Sep 2022 11:17:06 +0200
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Le 9/16/22 à 20:01, <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CY5PR10MB623893F30E0A795F26086899D4489@CY5PR10MB6238.namprd10.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I am aware that gprolog has the predicate send_signal/2. But is
there any mechanism to set a signal handler predicate if your
gprolog program receives a signal?</div>
</blockquote>
<p>Hi,</p>
<p><br>
</p>
<p>there is no way to do this in gprolog (hard to do this in a
portable way bu I suppose you can do this in C via the C interface
for a specific need).</p>
<p><br>
</p>
<p>Daniel</p>
<p><br>
</p>
</body>
</html>