repo.or.cz
/
retty.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Proper make clean - added deletion of detach code
[retty.git]
/
test.c
blob
ae8dd9db328ea0915e5575bc16b17cb159eddb4f
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <signal.h>
4
#include <unistd.h>
5
6
void
kva
(
int
x
)
7
{
8
sleep
(
4
);
9
}
10
11
int
main
()
12
{
13
printf
(
"%d
\n
"
,
getpid
());
14
signal
(
SIGUSR1
,
kva
);
15
sleep
(
5
);
16
while
(
1
) {
17
char
q
;
18
puts
(
"lala"
);
19
q
=
getchar
();
20
printf
(
"baaaa %c
\n
"
,
q
);
21
//sleep(5);
22
}
23
return
1
;
24
}