diff options
author | Ken Smith <kensmith@FreeBSD.org> | 2007-12-29 04:52:51 +0000 |
---|---|---|
committer | Ken Smith <kensmith@FreeBSD.org> | 2007-12-29 04:52:51 +0000 |
commit | 03a3a9133fe6b52753938efda9d816b455e04c7c (patch) | |
tree | a3277e68dd2ff7603a77e374fa2af93366520284 /usr.sbin | |
parent | d9aa6eb4fe1de39de598115631c56cb2db988750 (diff) | |
download | src-03a3a9133fe6b52753938efda9d816b455e04c7c.tar.gz src-03a3a9133fe6b52753938efda9d816b455e04c7c.zip |
Adjust the some error messages as suggested during re@ review, and
adjust a comment that won't be true shortly.
Notes
Notes:
svn path=/head/; revision=174963
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysinstall/main.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/main.c b/usr.sbin/sysinstall/main.c index bc6e1d92f160..dc02902d7edf 100644 --- a/usr.sbin/sysinstall/main.c +++ b/usr.sbin/sysinstall/main.c @@ -72,12 +72,19 @@ main(int argc, char **argv) return 1; } - /* If installing packages we'll grow a LOT. */ + /* + * Given what it does sysinstall (and stuff sysinstall runs like + * pkg_add) shouldn't be subject to process limits. Better to just + * let them have what they think they need than have them blow + * their brains out during an install (in sometimes strange and + * mysterious ways). + */ + rlim.rlim_cur = rlim.rlim_max = RLIM_INFINITY; if (setrlimit(RLIMIT_DATA, &rlim) != 0) - fprintf(stderr, "Warning: setrlimit() failed.\n"); + fprintf(stderr, "Warning: setrlimit() of datasize failed.\n"); if (setrlimit(RLIMIT_STACK, &rlim) != 0) - fprintf(stderr, "Warning: setrlimit() failed.\n"); + fprintf(stderr, "Warning: setrlimit() of stacksize failed.\n"); #ifdef PC98 { |