SCCS-vsn: libexec/comsat/comsat.c 4.7
SCCS-vsn: libexec/rexecd/rexecd.c 4.9
SCCS-vsn: libexec/rlogind/rlogind.c 4.16
SCCS-vsn: usr.sbin/edquota/edquota.c 4.5
-static char *sccsid = "@(#)comsat.c 4.6 83/05/27";
+static char *sccsid = "@(#)comsat.c 4.7 83/06/12";
#endif
#include <sys/types.h>
#endif
#include <sys/types.h>
wait(0);
sleep(10);
onalrm();
wait(0);
sleep(10);
onalrm();
- sigset(SIGALRM, onalrm);
- sigignore(SIGTTOU);
+ signal(SIGALRM, onalrm);
+ signal(SIGTTOU, SIG_IGN);
s = socket(AF_INET, SOCK_DGRAM, 0, 0);
if (s < 0) {
perror("socket");
s = socket(AF_INET, SOCK_DGRAM, 0, 0);
if (s < 0) {
perror("socket");
if (linecnt <= 0 || charcnt <= 0) {
fprintf(tp,"...more...%s\n", cr);
if (linecnt <= 0 || charcnt <= 0) {
fprintf(tp,"...more...%s\n", cr);
}
cp = index(line, ':');
if (cp &&
}
cp = index(line, ':');
if (cp &&
-static char sccsid[] = "@(#)rexecd.c 4.8 83/02/21";
+static char sccsid[] = "@(#)rexecd.c 4.9 83/06/12";
#endif
#include <sys/ioctl.h>
#endif
#include <sys/ioctl.h>
perror("rexecd: bind:");
exit(1);
}
perror("rexecd: bind:");
exit(1);
}
- sigset(SIGCHLD, reapchild);
+ signal(SIGCHLD, reapchild);
listen(f, 10);
for (;;) {
int s, len = sizeof (from);
listen(f, 10);
for (;;) {
int s, len = sizeof (from);
-static char sccsid[] = "@(#)rlogind.c 4.15 83/06/02";
+static char sccsid[] = "@(#)rlogind.c 4.16 83/06/12";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
perror("rlogind: bind");
exit(1);
}
perror("rlogind: bind");
exit(1);
}
- sigset(SIGCHLD, reapchild);
+ signal(SIGCHLD, reapchild);
listen(f, 10);
for (;;) {
int s, len = sizeof (from);
listen(f, 10);
for (;;) {
int s, len = sizeof (from);
ioctl(p, FIONBIO, &on);
ioctl(p, TIOCPKT, &on);
signal(SIGTSTP, SIG_IGN);
ioctl(p, FIONBIO, &on);
ioctl(p, TIOCPKT, &on);
signal(SIGTSTP, SIG_IGN);
- sigset(SIGCHLD, cleanup);
+ signal(SIGCHLD, cleanup);
for (;;) {
int ibits = 0, obits = 0;
for (;;) {
int ibits = 0, obits = 0;
-static char sccsid[] = "@(#)edquota.c 4.4 (Berkeley, from Melbourne) %G%";
+static char sccsid[] = "@(#)edquota.c 4.5 (Berkeley, from Melbourne) %G%";
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <sys/quota.h>
#define DEFEDITOR "/usr/ucb/vi"
#include <sys/quota.h>
#define DEFEDITOR "/usr/ucb/vi"
editit()
{
register pid, xpid;
editit()
{
register pid, xpid;
- int stat;
-
- sighold(SIGINT);
- sighold(SIGQUIT);
- sighold(SIGHUP);
+#define mask(s) (1<<((s)-1))
+ omask = sigblock(mask(SIGINT)|mask(SIGQUIT)|mask(SIGHUP));
top:
if ((pid = fork()) < 0) {
extern errno;
top:
if ((pid = fork()) < 0) {
extern errno;
if (pid == 0) {
register char *ed;
if (pid == 0) {
register char *ed;
- sigrelse(SIGINT);
- sigrelse(SIGQUIT);
- sigrelse(SIGHUP);
setgid(getgid());
setuid(getuid());
setgid(getgid());
setuid(getuid());
if ((ed = getenv("EDITOR")) == (char *)0)
ed = DEFEDITOR;
execlp(ed, ed, tmpfil, 0);
if ((ed = getenv("EDITOR")) == (char *)0)
ed = DEFEDITOR;
execlp(ed, ed, tmpfil, 0);
while ((xpid = wait(&stat)) >= 0)
if (xpid == pid)
break;
while ((xpid = wait(&stat)) >= 0)
if (xpid == pid)
break;
- sigrelse(SIGINT);
- sigrelse(SIGQUIT);
- sigrelse(SIGHUP);