There isn't a way. And I will argue there shouldn't be a way to do that. I don't see a need to invent such a scheme for one user, when half a century of Unix has no way to do this. Sorry.
Johannes Thyssen Tishman <li...@thyssentishman.com> wrote: > Hi everyone, > > is there a way to configure a location to store userland core dumps? > I'd like to store them in /tmp to keep them available only until > the next reboot. This way I can avoid having core dumps, that > sometimes I don't even know about, scattered all over my home > directory. > > I've read about 'sysctl kern.nosuidcoredump' in sysctl(8), but I > believe files stored under /var/crash/${program} are persistent > after reboots, right? Also, I know I can disable them from > /etc/login.conf, but I'd prefer to keep them at least until the > next reboot just in case. > > I'm sure that there must be a reason for why OpenBSD defaults to > dumping core files like it does, so please let me know if what I'm > asking is a bad idea. I would really appreciate it. > > Thank you. > > Kind regards, > Johannes >