git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added python installer
[tridge/junkcode.git]
/
k.c
1
main()
2
{
3
4
fd_set fds;
5
6
7
while (!read_all_data) {
8
tval.tv_sec = 1;
9
tval.tv_usec = 0;
10
FD_ZERO(&fds);
11
FS_SET(&fds, s);
12
ret = select(s+1, &fds, NULL, NULL, &tval);
13
if (ret > 0) {
14
if (FD_ISSET(&fds, s)) {
15
read(s, lksnfglkm);
16
}
17
}
18
do_background_processing();
19
}
20
21
}