diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/ki/kintpr.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/ki/kintpr.x')
-rw-r--r-- | sys/ki/kintpr.x | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys/ki/kintpr.x b/sys/ki/kintpr.x new file mode 100644 index 00000000..ec3b6d4f --- /dev/null +++ b/sys/ki/kintpr.x @@ -0,0 +1,36 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <mach.h> +include <config.h> +include "ki.h" + +# KINTPR -- Send a signal (interrupt) to a connected subprocess. + +procedure kintpr (pid, vex, status) + +int pid # process id +int vex # virtual exception +int status # exit status of the job + +int server +int ki_sendrcv() +include "kichan.com" +include "kii.com" + +begin + server = k_node[pid] + + if (server == NULL) { + call zintpr (k_oschan[pid], vex, status) + + } else { + p_arg[1] = k_oschan[pid] + p_arg[2] = vex + p_sbuflen = 0 + + if (ki_sendrcv (server, KI_ZINTPR, 0) == ERR) + status = ERR + else + status = p_arg[1] + } +end |