projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement 3PTY bridge of two 'join's.
[lcr.git]
/
select.c
diff --git
a/select.c
b/select.c
index
ba9b563
..
3ae8a20
100644
(file)
--- a/
select.c
+++ b/
select.c
@@
-104,9
+104,9
@@
again:
}
if (polling)
timer = &no_time;
}
if (polling)
timer = &no_time;
-#warning TESTING
-
if (!timer)
-
printf("wait till infinity ..."); fflush(stdout);
+
//
#warning TESTING
+
//
if (!timer)
+
//
printf("wait till infinity ..."); fflush(stdout);
FD_ZERO(&readset);
FD_ZERO(&writeset);
FD_ZERO(&readset);
FD_ZERO(&writeset);
@@
-129,9
+129,9
@@
again:
rc = select(maxfd+1, &readset, &writeset, &exceptset, timer);
if (lock)
lock();
rc = select(maxfd+1, &readset, &writeset, &exceptset, timer);
if (lock)
lock();
-#warning TESTING
-
if (!timer)
-
printf("interrupted.\n");
+
//
#warning TESTING
+
//
if (!timer)
+
//
printf("interrupted.\n");
if (rc < 0)
return 0;
if (global_change && *global_change) {
if (rc < 0)
return 0;
if (global_change && *global_change) {
@@
-371,10
+371,10
@@
void _del_work(struct lcr_work *work, const char *func)
#endif
}
#endif
}
-void
trigger_work(struct lcr_work *work
)
+void
_trigger_work(struct lcr_work *work, const char *func
)
{
if (!work->inuse) {
{
if (!work->inuse) {
- FATAL("Work not added
\n"
);
+ FATAL("Work not added
, (called from func %s)\n", func
);
}
/* event already triggered */
}
/* event already triggered */