projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
io statistics
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
wwsuspend.c
#ifndef lint
static char
*
sccsid
=
"@(#)wwsuspend.c 1.4 83/07/22"
;
#endif
#include
"ww.h"
#include <signal.h>
#define mask(s) (1<<(SIG
/**/
s-1))
wwsuspend
()
{
int
oldmask
;
oldmask
=
sigblock
(
mask
(
TSTP
));
wwend
();
sigsetmask
(
sigblock
(
0
) & ~
mask
(
TSTP
));
kill
(
0
,
SIGTSTP
);
sigblock
(
mask
(
TSTP
));
wwsettty
(
0
, &
wwnewtty
);
Winit
(
2
,
1
);
sigsetmask
(
oldmask
);
}