projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8155a3b
)
More debug.
author
Andreas Eversberg
<jolly@eversberg.eu>
Thu, 24 Jun 2010 07:23:27 +0000
(09:23 +0200)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Thu, 24 Jun 2010 07:23:27 +0000
(09:23 +0200)
chan_lcr.c
patch
|
blob
|
history
diff --git
a/chan_lcr.c
b/chan_lcr.c
index
a681e79
..
05ac231
100644
(file)
--- a/
chan_lcr.c
+++ b/
chan_lcr.c
@@
-1531,13
+1531,18
@@
static int handle_socket(struct lcr_fd *fd, unsigned int what, void *instance, i
lock_debug("handle+");
if ((what & LCR_FD_READ)) {
/* read from socket */
lock_debug("handle+");
if ((what & LCR_FD_READ)) {
/* read from socket */
+ lock_debug("handle1");
len = read(lcr_sock, &msg, sizeof(msg));
len = read(lcr_sock, &msg, sizeof(msg));
+ lock_debug("handle2");
if (len == 0) {
CERROR(NULL, NULL, "Socket closed.\n");
error:
CERROR(NULL, NULL, "Handling of socket failed - closing for some seconds.\n");
if (len == 0) {
CERROR(NULL, NULL, "Socket closed.\n");
error:
CERROR(NULL, NULL, "Handling of socket failed - closing for some seconds.\n");
+ lock_debug("handle3");
close_socket();
close_socket();
+ lock_debug("handle4");
release_all_calls();
release_all_calls();
+ lock_debug("handle5");
schedule_timer(&socket_retry, SOCKET_RETRY_TIMER, 0);
lock_debug("handle-");
return 0;
schedule_timer(&socket_retry, SOCKET_RETRY_TIMER, 0);
lock_debug("handle-");
return 0;
@@
-1565,8
+1570,10
@@
static int handle_socket(struct lcr_fd *fd, unsigned int what, void *instance, i
lock_debug("handle-");
return 0;
}
lock_debug("handle-");
return 0;
}
+ lock_debug("handle6");
admin = admin_first;
len = write(lcr_sock, &admin->msg, sizeof(msg));
admin = admin_first;
len = write(lcr_sock, &admin->msg, sizeof(msg));
+ lock_debug("handle7");
if (len == 0) {
CERROR(NULL, NULL, "Socket closed.\n");
goto error;
if (len == 0) {
CERROR(NULL, NULL, "Socket closed.\n");
goto error;
@@
-1577,6
+1584,7
@@
static int handle_socket(struct lcr_fd *fd, unsigned int what, void *instance, i
goto error;
}
/* free head */
goto error;
}
/* free head */
+ lock_debug("handle8");
admin_first = admin->next;
free(admin);
global_change = 1;
admin_first = admin->next;
free(admin);
global_change = 1;