From 2ad6ee8ed15d1bf898645a16dbc06991a3c1425e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 25 Jan 2023 19:22:18 +0100 Subject: user: process titles, /bin/ps --- src/user/lib/fs/misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/user/lib/fs') diff --git a/src/user/lib/fs/misc.c b/src/user/lib/fs/misc.c index 11428b8..ee0b54c 100644 --- a/src/user/lib/fs/misc.c +++ b/src/user/lib/fs/misc.c @@ -233,11 +233,13 @@ bool mount_at_pred(const char *path) { if (!fork2_n_mount(path)) { /* child -> go into the for body */ _klogf("%s: impl", path); + setproctitle("i'%s'", path); return true; } if (strcmp("/", path) && !fork2_n_mount("/")) { _klogf("%s: dir", path); + setproctitle("d'%s'", path); fs_dir_inject(path); exit(1); } -- cgit v1.2.3