mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 04:17:34 +00:00
Vector<String>() -> { }
This commit is contained in:
parent
ba91ab1038
commit
355201f34d
1 changed files with 5 additions and 5 deletions
|
@ -40,7 +40,7 @@ static void spawn_stress()
|
||||||
|
|
||||||
for (unsigned i = 0; i < 10000; ++i) {
|
for (unsigned i = 0; i < 10000; ++i) {
|
||||||
int error;
|
int error;
|
||||||
Process::create_user_process("/bin/true", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty0);
|
Process::create_user_process("/bin/true", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0);
|
||||||
dbgprintf("malloc stats: alloc:%u free:%u eternal:%u !delta:%u\n", sum_alloc, sum_free, kmalloc_sum_eternal, sum_alloc - last_sum_alloc);
|
dbgprintf("malloc stats: alloc:%u free:%u eternal:%u !delta:%u\n", sum_alloc, sum_free, kmalloc_sum_eternal, sum_alloc - last_sum_alloc);
|
||||||
last_sum_alloc = sum_alloc;
|
last_sum_alloc = sum_alloc;
|
||||||
sleep(60);
|
sleep(60);
|
||||||
|
@ -91,11 +91,11 @@ static void init_stage2()
|
||||||
environment.append("TERM=ansi");
|
environment.append("TERM=ansi");
|
||||||
|
|
||||||
int error;
|
int error;
|
||||||
Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), move(environment), tty0);
|
Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
|
||||||
#ifdef SPAWN_MULTIPLE_SHELLS
|
#ifdef SPAWN_MULTIPLE_SHELLS
|
||||||
Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty1);
|
Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty1);
|
||||||
Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty2);
|
Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty2);
|
||||||
Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty3);
|
Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty3);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STRESS_TEST_SPAWNING
|
#ifdef STRESS_TEST_SPAWNING
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue