Merge pull request #2999 from matt335672/devel_fix_freebsd_core
[devel] Don't generate a corefile when generating SIGSEGV
This commit is contained in:
commit
661a441745
@ -108,6 +108,9 @@ START_TEST(test_g_signal_child_stop_1)
|
|||||||
pid = g_fork();
|
pid = g_fork();
|
||||||
if (pid == 0)
|
if (pid == 0)
|
||||||
{
|
{
|
||||||
|
// Before raising the signal, change directory to a non-writeable
|
||||||
|
// one to avoid generating a corefile.
|
||||||
|
g_set_current_dir("/");
|
||||||
raise(SIGSEGV);
|
raise(SIGSEGV);
|
||||||
}
|
}
|
||||||
ck_assert_int_ne(pid, 0);
|
ck_assert_int_ne(pid, 0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user