mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
Basic ^C interrupt implementation.
For testing, I made cat put itself into a new process group. This should eventually be done by sh between fork() and exec().
This commit is contained in:
parent
621217ffeb
commit
10b666f69a
11 changed files with 94 additions and 38 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
setpgid(0, 0);
|
||||
if (argc != 2) {
|
||||
printf("usage: cat <file>\n");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue