projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mail back errors (perhaps this is why mail gets lost.....)
[unix-history]
/
usr
/
src
/
bin
/
csh
/
func.c
diff --git
a/usr/src/bin/csh/func.c
b/usr/src/bin/csh/func.c
index
a4d509f
..
87f35cd
100644
(file)
--- a/
usr/src/bin/csh/func.c
+++ b/
usr/src/bin/csh/func.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)func.c 4.
1 %G%
";
+static char *sccsid = "@(#)func.c 4.
6 81/08/20
";
#include "sh.h"
#include <sys/ioctl.h>
#include "sh.h"
#include <sys/ioctl.h>
@@
-155,6
+155,7
@@
dologin(v)
{
islogin();
{
islogin();
+ rechist();
signal(SIGTERM, parterm);
execl("/bin/login", "login", v[1], 0);
untty();
signal(SIGTERM, parterm);
execl("/bin/login", "login", v[1], 0);
untty();
@@
-165,6
+166,8
@@
donewgrp(v)
char **v;
{
char **v;
{
+ if (chkstop == 0 && setintr)
+ panystop(0);
signal(SIGTERM, parterm);
execl("/bin/newgrp", "newgrp", v[1], 0);
execl("/usr/bin/newgrp", "newgrp", v[1], 0);
signal(SIGTERM, parterm);
execl("/bin/newgrp", "newgrp", v[1], 0);
execl("/usr/bin/newgrp", "newgrp", v[1], 0);
@@
-585,6
+588,10
@@
getword(wp)
do {
while (c == ' ' || c == '\t')
c = readc(1);
do {
while (c == ' ' || c == '\t')
c = readc(1);
+ if (c == '#')
+ do
+ c = readc(1);
+ while (c >= 0 && c != '\n');
if (c < 0)
goto past;
if (c == '\n') {
if (c < 0)
goto past;
if (c == '\n') {
@@
-813,7
+820,7
@@
doumask(v)
umask(i);
}
umask(i);
}
-#include <sys/limit.h>
+#include <sys/
v
limit.h>
struct limits {
int limconst;
struct limits {
int limconst;
@@
-827,6
+834,7
@@
struct limits {
LIM_DATA, "datasize", 1024, "kbytes",
LIM_STACK, "stacksize", 1024, "kbytes",
LIM_CORE, "coredumpsize", 1024, "kbytes",
LIM_DATA, "datasize", 1024, "kbytes",
LIM_STACK, "stacksize", 1024, "kbytes",
LIM_CORE, "coredumpsize", 1024, "kbytes",
+ LIM_MAXRSS, "memoryuse", 1024, "kbytes",
-1, 0,
};
-1, 0,
};