aboutsummaryrefslogtreecommitdiff
path: root/contrib/amd/amd/amd.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-11-05 11:42:30 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-11-05 11:42:30 +0000
commit56b658f4c005d078f663f7483244d943db6d7c93 (patch)
treed1487de1e4fe4eeecee0ace0bdefeaba6ec28996 /contrib/amd/amd/amd.c
parentbceb780b84ed334dd7fc5633332a9dd386f2f451 (diff)
downloadsrc-56b658f4c005d078f663f7483244d943db6d7c93.tar.gz
src-56b658f4c005d078f663f7483244d943db6d7c93.zip
Virgin import of AMD (am-utils) v6.0.3s1
Notes
Notes: svn path=/vendor/amd/dist/; revision=52894
Diffstat (limited to 'contrib/amd/amd/amd.c')
-rw-r--r--contrib/amd/amd/amd.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/contrib/amd/amd/amd.c b/contrib/amd/amd/amd.c
index a272625a7bf2..3f3da1b80226 100644
--- a/contrib/amd/amd/amd.c
+++ b/contrib/amd/amd/amd.c
@@ -38,7 +38,7 @@
*
* %W% (Berkeley) %G%
*
- * $Id: amd.c,v 1.5 1999/02/04 07:24:14 ezk Exp $
+ * $Id: amd.c,v 1.6 1999/09/30 21:01:29 ezk Exp $
*
*/
@@ -248,6 +248,12 @@ init_global_options(void)
/* OS version */
gopt.op_sys_ver = HOST_OS_VERSION;
+ /* full OS name and version */
+ gopt.op_sys_full = HOST_OS;
+
+ /* OS version */
+ gopt.op_sys_vendor = HOST_VENDOR;
+
/* pid file */
gopt.pid_file = "/dev/stdout";
@@ -498,6 +504,16 @@ main(int argc, char *argv[])
*/
#ifdef HAVE_PLOCK
if (gopt.flags & CFM_PROCESS_LOCK) {
+# ifdef _AIX
+ /*
+ * On AIX you must lower the stack size using ulimit() before calling
+ * plock. Otherwise plock will reserve a lot of memory space based on
+ * your maximum stack size limit. Since it is not easily possible to
+ * tell what should the limit be, I print a warning before calling
+ * plock(). See the manual pages for ulimit(1,3,4) on your AIX system.
+ */
+ plog(XLOG_WARNING, "AIX: may need to lower stack size using ulimit(3) before calling plock");
+# endif /* _AIX */
if (plock(PROCLOCK) != 0) {
plog(XLOG_WARNING, "Couldn't lock process text and data segment in memory: %m");
} else {