projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert to 4.2 - remove sigset's and fixed makefile
[unix-history]
/
usr
/
src
/
local
/
ditroff
/
ditroff.old.okeeffe
/
gremlin.aed
/
gremlin
/
main.c
diff --git
a/usr/src/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gremlin/main.c
b/usr/src/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gremlin/main.c
index
df87736
..
8b73b14
100644
(file)
--- a/
usr/src/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gremlin/main.c
+++ b/
usr/src/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gremlin/main.c
@@
-1,4
+1,4
@@
-/* @(#)main.c 1.
4
%G%
+/* @(#)main.c 1.
5
%G%
*
* Copyright -C- 1982 Barry S. Roitblat
*
*
* Copyright -C- 1982 Barry S. Roitblat
*
@@
-78,7
+78,7
@@
extern char *malloc(), *sprintf(), *strcat(), *strcpy();
/* Version number */
/* Version number */
-char SccsId [] = "@(#)main.c 1.
4
(Berkeley) %G%";
+char SccsId [] = "@(#)main.c 1.
5
(Berkeley) %G%";
#ifdef SIGTINT
static int lintrup = LINTRUP; /* Constant for local mode bit */
#ifdef SIGTINT
static int lintrup = LINTRUP; /* Constant for local mode bit */
@@
-200,13
+200,13
@@
char *argv[];
/* Ignore quit signals, catch interrupts and stops. */
/* Ignore quit signals, catch interrupts and stops. */
- sig
set
(SIGINT, SIG_IGN);
- sig
set
(SIGTSTP, OnStop);
- sig
set
(SIGTTIN, OnStop);
- sig
set
(SIGTTOU, OnStop);
+ sig
nal
(SIGINT, SIG_IGN);
+ sig
nal
(SIGTSTP, OnStop);
+ sig
nal
(SIGTTIN, OnStop);
+ sig
nal
(SIGTTOU, OnStop);
#ifdef SIGTINT
#ifdef SIGTINT
- sig
set
(SIGTINT, OnCommand);
+ sig
nal
(SIGTINT, OnCommand);
sighold(SIGTINT);
#endif SIGTINT
sighold(SIGTINT);
#endif SIGTINT
@@
-394,9
+394,10
@@
int signo;
{
TxClose();
{
TxClose();
- sigset(signo, SIG_DFL);
+ signal(signo, SIG_DFL);
+ sigsetmask(0);
(void) kill(0, signo);
(void) kill(0, signo);
- sig
set
(signo, OnStop);
+ sig
nal
(signo, OnStop);
SHRedis();
}
SHRedis();
}