mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 18:40:03 +01:00
Merge branch 'wip/smcv/rlimit-nproc-error' into 'main'
tests: Improve error message if setting max processes to 1 fails See merge request GNOME/glib!3191
This commit is contained in:
commit
71f0b3b5ea
@ -147,7 +147,8 @@ test_thread4 (void)
|
||||
nl.rlim_cur = 1;
|
||||
|
||||
if (prlimit (getpid (), RLIMIT_NPROC, &nl, &ol) != 0)
|
||||
g_error ("prlimit failed: %s", g_strerror (errno));
|
||||
g_error ("setting RLIMIT_NPROC to {cur=%ld,max=%ld} failed: %s",
|
||||
(long) nl.rlim_cur, (long) nl.rlim_max, g_strerror (errno));
|
||||
|
||||
error = NULL;
|
||||
thread = g_thread_try_new ("a", thread1_func, NULL, &error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user