Hi,
Core dumps are disabled under KDM and GDM login on SuSE Linux Professional
9.0.
Can someone who is running the 9.1 beta check if coredumps work under 9.1
before I pay to upgrade it? You first need to comment out any:
ulimit -c 0
Lines in /etc/profile and then re-login into KDM and run the following
program. If it says zero for max then coredumps are still disabled in 9.1.
Thanks for any help.
===============================
$ cat getcorelimit.c
===============================
#include
#include
#include
#include
#include
#include
int
main(int argc, char **argv)
{
struct rlimit r;
memset((void *) &r, sizeof(r), 0);
printf("RLIMIT_CORE\n");
if (getrlimit(RLIMIT_CORE, &r) < 0) {
printf("fails: %s\n", strerror(errno));
}
else {
printf("current = ");
if (r.rlim_cur == RLIM_INFINITY) {
printf("RLIM_INFINITY");
}
else {
printf(" %10d", r.rlim_cur);
}
printf(" max = ");
if (r.rlim_max == RLIM_INFINITY) {
printf("RLIM_INFINITY");
}
else {
printf(" %10d", r.rlim_max);
}
printf("\n");
}
fflush(stdout);
return 0;
}
=====================================
$ make getcorelimit
$ ./getcorelimit
--
_/_/_/ Bob Pearson gottadoit@mailsnare.net
_/_/_/ i) Nil disputandum de gustibus.
_/_/_/ ii) Dum spiro, spero!