include aculib in cleanup
[unix-history] / usr / src / usr.bin / ftp / main.c
index 554f45c..5f18842 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)main.c     4.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     4.8 (Berkeley) %G%";
 #endif
 
 /*
 #endif
 
 /*
@@ -101,14 +101,14 @@ main(argc, argv)
        if (argc > 0) {
                if (setjmp(toplevel))
                        exit(0);
        if (argc > 0) {
                if (setjmp(toplevel))
                        exit(0);
-               sigset(SIGINT, intr);
-               sigset(SIGPIPE, lostpeer);
+               signal(SIGINT, intr);
+               signal(SIGPIPE, lostpeer);
                setpeer(argc + 1, argv - 1);
        }
        top = setjmp(toplevel) == 0;
        if (top) {
                setpeer(argc + 1, argv - 1);
        }
        top = setjmp(toplevel) == 0;
        if (top) {
-               sigset(SIGINT, intr);
-               sigset(SIGPIPE, lostpeer);
+               signal(SIGINT, intr);
+               signal(SIGPIPE, lostpeer);
        }
        for (;;) {
                cmdscanner(top);
        }
        for (;;) {
                cmdscanner(top);