SEF: default to endpoint-changing restart
This commit is contained in:
		
							parent
							
								
									ba19c83fd6
								
							
						
					
					
						commit
						2f622b3a51
					
				@ -48,6 +48,7 @@ _PROTOTYPE( int sef_cb_init_null, (int type, sef_init_info_t *info) );
 | 
				
			|||||||
_PROTOTYPE( int sef_cb_init_response_null, (message *m_ptr) );
 | 
					_PROTOTYPE( int sef_cb_init_response_null, (message *m_ptr) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
_PROTOTYPE( int sef_cb_init_fail, (int type, sef_init_info_t *info) );
 | 
					_PROTOTYPE( int sef_cb_init_fail, (int type, sef_init_info_t *info) );
 | 
				
			||||||
 | 
					_PROTOTYPE( int sef_cb_init_reset, (int type, sef_init_info_t *info) );
 | 
				
			||||||
_PROTOTYPE( int sef_cb_init_crash, (int type, sef_init_info_t *info) );
 | 
					_PROTOTYPE( int sef_cb_init_crash, (int type, sef_init_info_t *info) );
 | 
				
			||||||
_PROTOTYPE( int sef_cb_init_response_rs_reply, (message *m_ptr) );
 | 
					_PROTOTYPE( int sef_cb_init_response_rs_reply, (message *m_ptr) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -59,7 +60,7 @@ _PROTOTYPE( int sef_cb_init_response_rs_reply, (message *m_ptr) );
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define SEF_CB_INIT_FRESH_DEFAULT       sef_cb_init_null
 | 
					#define SEF_CB_INIT_FRESH_DEFAULT       sef_cb_init_null
 | 
				
			||||||
#define SEF_CB_INIT_LU_DEFAULT          sef_cb_init_null
 | 
					#define SEF_CB_INIT_LU_DEFAULT          sef_cb_init_null
 | 
				
			||||||
#define SEF_CB_INIT_RESTART_DEFAULT     sef_cb_init_null
 | 
					#define SEF_CB_INIT_RESTART_DEFAULT     sef_cb_init_reset
 | 
				
			||||||
#define SEF_CB_INIT_RESPONSE_DEFAULT    sef_cb_init_response_rs_reply
 | 
					#define SEF_CB_INIT_RESPONSE_DEFAULT    sef_cb_init_response_rs_reply
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Init types. */
 | 
					/* Init types. */
 | 
				
			||||||
 | 
				
			|||||||
@ -181,6 +181,15 @@ PUBLIC int sef_cb_init_fail(int UNUSED(type), sef_init_info_t *UNUSED(info))
 | 
				
			|||||||
  return ENOSYS;
 | 
					  return ENOSYS;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*===========================================================================*
 | 
				
			||||||
 | 
					 *      	              sef_cb_init_reset                              *
 | 
				
			||||||
 | 
					 *===========================================================================*/
 | 
				
			||||||
 | 
					PUBLIC int sef_cb_init_reset(int UNUSED(type), sef_init_info_t *UNUSED(info))
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  /* Tell RS to reincarnate us, with no old resources, and a new endpoint. */
 | 
				
			||||||
 | 
					  return ERESTART;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*===========================================================================*
 | 
					/*===========================================================================*
 | 
				
			||||||
 *      	              sef_cb_init_crash                              *
 | 
					 *      	              sef_cb_init_crash                              *
 | 
				
			||||||
 *===========================================================================*/
 | 
					 *===========================================================================*/
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user