How to stop core files in /

Salvador Pinto Abreu spa at fctunl.rccn.pt
Mon Jun 11 21:52:48 AEST 1990


In article <1650 at vela.acs.oakland.edu> schemers at vela.acs.oakland.edu (Roland Schemers III) writes:

> In article <IaQKjXq00VRUI0xVYB at andrew.cmu.edu> mikem+ at andrew.cmu.edu (Michael Meyer) writes:
> >The X server on my decstation 3100's has a nasty habit of crashing and
> >dropping a LARGE core file in /.  (*)  I can live with the X server
> >restarting itself, but I would prefer not to have my / filesystem filled
> >up with the core file.
> >

> If you have root access try:

> su
> cp /dev/null /core
> chmod 0 /core

> That might stop it. By creating a empty core file owned by root and without
> any write access to it the program that dumps core might not be able to
> create a /core file.

> Roland

I'm not sure this would work, as the X server runs as root. However,
you may do something along the lines of:

	% su
	# rm -f /core
	# ln -s /dev/null /core

This doesn't prevent your program (X server?) from dumping core,
however, the dump itself goes into a black hole (remember Decus BH: on
RSX?) and won't bother you anymore.
--
---
Salvador Pinto Abreu	              BITNET/Internet: spa at fctunl.rccn.pt
 +---------------------------------+             UUCP: spa at unl.uucp
 |   Departamento de Informatica   +----------------------------------+
 |   Universidade Nova de Lisboa      2825 Monte Caparica, PORTUGAL   |
 +--------------------------------------------------------------------+



More information about the Comp.unix.ultrix mailing list