Core dumps for threads

From: Don Dugger (
Date: Sat Feb 24 2001 - 16:45:23 EST

Can anyone explain why this test is in routine `do_coredump'
in file `fs/exec.c' in the 2.4.0 kernel?

    if (!current->dumpable || atomic_read(&current->mm->mm_users) != 1)
        goto fail;

The only thing the test on `mm_users' seems to be doing is stopping
a thread process from dumping core. What's the rationale for this?

Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
Ph: 303/938-9838
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:08 EST