projects
/
ppp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed warning if not process group leader when using default device
[ppp.git]
/
pppd
/
main.c
diff --git
a/pppd/main.c
b/pppd/main.c
index 30596d160b47b8773700143f2c5d19670d32a20e..7de1d1374832dfb72915d3d0ea023fd70d7da5d6 100644
(file)
--- a/
pppd/main.c
+++ b/
pppd/main.c
@@
-18,7
+18,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char rcsid[] = "$Id: main.c,v 1.
3 1993/12/14 05:16:01
paulus Exp $";
+static char rcsid[] = "$Id: main.c,v 1.
4 1993/12/15 00:17:43
paulus Exp $";
#endif
#define SETSID
#endif
#define SETSID
@@
-264,8
+264,6
@@
main(argc, argv)
syslog(LOG_ERR, "getpgrp(0): %m");
die(1);
}
syslog(LOG_ERR, "getpgrp(0): %m");
die(1);
}
- if (pgrpid != pid)
- syslog(LOG_WARNING, "warning... not a process group leader");
} else {
/*
} else {
/*
@@
-399,14
+397,14
@@
main(argc, argv)
}
/*
}
/*
- * Set process group of device to our process group so we can get SIGIOs.
+ * Set process group of device to our process group so we can get
+ * SIGIOs and SIGHUPs.
*/
#ifdef SETSID
if (default_device) {
int id = tcgetpgrp(fd);
if (id != pgrpid) {
*/
#ifdef SETSID
if (default_device) {
int id = tcgetpgrp(fd);
if (id != pgrpid) {
- syslog(LOG_WARNING,
- "warning: not foreground process group leader");
+ syslog(LOG_WARNING, "warning: not in tty's process group");
}
} else {
if (tcsetpgrp(fd, pgrpid) < 0) {
}
} else {
if (tcsetpgrp(fd, pgrpid) < 0) {