mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
67a4256a98
This should probably call out to a login program at some point. Right now it just puts a root terminal on tty{1,2,3}. Remember not to leave your Serenity workstation unattended!
16 lines
360 B
C++
16 lines
360 B
C++
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
if (argc < 2)
|
|
return -1;
|
|
|
|
dbgprintf("Starting console server on %s\n", argv[1]);
|
|
|
|
while (true) {
|
|
dbgprintf("Running shell on %s\n", argv[1]);
|
|
int rc = system("/bin/Shell");
|
|
dbgprintf("Shell on %s exited with code %d\n", argv[1], rc);
|
|
}
|
|
}
|