FACT++  1.0
CLIENT* check_delay_delete ( int  conn_id)

Definition at line 2193 of file dis_old.c.

References req_ent::delay_delete, dll_get_next(), find_client(), reqp_ent::reqp, cli_ent::requestp_head, and req_ent::to_delete.

Referenced by release_conn().

2194 {
2195  register REQUEST_PTR *reqpp;
2196  register CLIENT *clip;
2197  register REQUEST *reqp;
2198  int found = 0;
2199 
2200  DISABLE_AST;
2201  clip = find_client(conn_id);
2202  if(clip)
2203  {
2204  reqpp = clip->requestp_head;
2205  while( (reqpp = (REQUEST_PTR *) dll_get_next((DLL *)clip->requestp_head,
2206  (DLL *) reqpp)) )
2207  {
2208  reqp = (REQUEST *) reqpp->reqp;
2209  if(reqp->delay_delete)
2210  {
2211  reqp->to_delete = 1;
2212  found = 1;
2213  }
2214  }
2215  }
2216  ENABLE_AST;
2217  if(found)
2218  {
2219  return((CLIENT *)-1);
2220  }
2221  return(clip);
2222 }
int to_delete
Definition: dis.c:64
Definition: dis.c:98
Definition: dim.h:530
REQUEST_PTR * requestp_head
Definition: dis.c:102
CLIENT * find_client(int conn_id)
Definition: dis_old.c:2148
int delay_delete
Definition: dis.c:63
DLL * dll_get_next(DLL *head, DLL *item)
Definition: dll.c:66
Definition: dis.c:92
REQUEST * reqp
Definition: dis.c:95
Definition: dis.c:52

+ Here is the call graph for this function:

+ Here is the caller graph for this function: