summaryrefslogtreecommitdiff
path: root/src/user/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app')
-rw-r--r--src/user/app/shell/shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c
index becc8d8..8e13029 100644
--- a/src/user/app/shell/shell.c
+++ b/src/user/app/shell/shell.c
@@ -80,6 +80,9 @@ void run_args(int argc, char **argv, struct redir *redir) {
return;
} else if (!strcmp(argv[0], "exit")) {
exit(0);
+ } else if (!strcmp(argv[0], "getpid")) {
+ printf("my\t%d\nparent\t%d\n", getpid(), getppid());
+ return;
}
if (fork()) {