diff options
author | makefunstuff <[email protected]> | 2024-07-13 22:17:02 +0200 |
---|---|---|
committer | makefunstuff <[email protected]> | 2024-07-13 22:17:02 +0200 |
commit | 1072f6346489d41f38e565a408be0d12c1c898b2 (patch) | |
tree | b5cccfcbbcbecba281edac79c2f86250182e06a5 /csrc/main.c | |
parent | 714036825c38be947eb88a82c02425d7932d2919 (diff) | |
download | tinkerbunk-1072f6346489d41f38e565a408be0d12c1c898b2.tar.gz |
ps
Diffstat (limited to 'csrc/main.c')
-rw-r--r-- | csrc/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/csrc/main.c b/csrc/main.c index f8393e5..7ba36eb 100644 --- a/csrc/main.c +++ b/csrc/main.c @@ -1,5 +1,6 @@ #include "cp.h" #include "http.h" +#include "ps.h" #include "sh.h" #include "stat.h" #include "wc.h" @@ -41,5 +42,10 @@ int main(int argc, char *argv[]) { } else if (strncmp(command, "http", 4) == 0) { int port = atoi(argv[2]); start_server(port); + } else if (strncmp(command, "ps", 2) == 0) { + if (ps() == PS_ERR) { + return 1; + }; } + return 0; } |