sandy@conexch.UUCP (10/27/87)
If you are writting your own getty program and wish to be able to use SCO's ungetty, all you need to do is the following: Trap SIGUSR1 - This is the way that ungetty tells getty to "go to sleep". When you receive this signal, you must do the following: a) fclose(stdin) b) fclose(stdout) c) fclose(stderr) d) close(0) e) close(1) f) close(2) g) re-write utmp so that LOGIN is nolonger there but is now DIALOUT h) (void) pause() i) exit(0) Note: since you are using a "pause", any signal that is redirected back to your getty will terminate the process. Note again: Since getty, as far as init is concerned, has not died, a new getty will not be spawned until ungetty is finished! Sanford ( Sandy ) Zelkovitz XBBS 714-828-0288