Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
2d618dcd
Commit
2d618dcd
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add terminate handler to threads interface + date format for creation
parent
e9084691
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapServer/zmapServerProtocolHandler.c
+22
-5
22 additions, 5 deletions
src/zmapServer/zmapServerProtocolHandler.c
with
22 additions
and
5 deletions
src/zmapServer/zmapServerProtocolHandler.c
+
22
−
5
View file @
2d618dcd
...
...
@@ -25,9 +25,9 @@
* Description:
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Feb
2
14:0
2
2005 (edgrif)
* Last edited: Feb
3
14:
4
0 2005 (edgrif)
* Created: Thu Jan 27 13:17:43 2005 (edgrif)
* CVS info: $Id: zmapServerProtocolHandler.c,v 1.
1
2005-02-0
2
15:1
3
:34 edgrif Exp $
* CVS info: $Id: zmapServerProtocolHandler.c,v 1.
2
2005-02-0
3
15:
0
1:34 edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -153,15 +153,32 @@ ZMapThreadReturnCode zMapServerRequestHandler(void **slave_data,
}
/* Return server state. */
zMapAssert
(
server
)
;
/* Return server. */
*
slave_data
=
(
void
*
)
server
;
return
thread_rc
;
}
/* This function is called if a thread terminates in some abnormal way (e.g. is cancelled),
* it enables the server to clean up. */
ZMapThreadReturnCode
zMapServerTerminateHandler
(
void
**
slave_data
,
char
**
err_msg_out
)
{
ZMapThreadReturnCode
thread_rc
=
ZMAPTHREAD_RETURNCODE_OK
;
ZMapServer
server
;
zMapAssert
(
slave_data
)
;
server
=
(
ZMapServer
)
*
slave_data
;
thread_rc
=
terminateServer
(
&
server
,
err_msg_out
)
;
return
thread_rc
;
}
/* Static/global list of protocols and whether their global init/cleanup functions have been
* called. These are functions that must only be called once. */
...
...
@@ -235,7 +252,7 @@ static ZMapThreadReturnCode openServerAndLoad(ZMapServerReqOpenLoad request, ZMa
/* Create the thread block for this specific server thread. */
if
(
!
zMapServerCreateConnection
(
&
server
,
global_init_data
,
open
->
machine
,
open
->
port
,
open
->
protocol
,
open
->
timeout
,
open
->
version
,
open
->
protocol
,
open
->
format
,
open
->
timeout
,
open
->
version
,
"any"
,
"any"
))
{
*
err_msg_out
=
zMapServerLastErrorMsg
(
server
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment