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
965ec8a0
Commit
965ec8a0
authored
18 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
make test app deal correctly with final quit from zmap.
parent
e37443c2
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/zmapControl/remote/xremote_gui_test.c
+18
-2
18 additions, 2 deletions
src/zmapControl/remote/xremote_gui_test.c
with
18 additions
and
2 deletions
src/zmapControl/remote/xremote_gui_test.c
+
18
−
2
View file @
965ec8a0
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Mar
5
1
7:58
2007 (
rds
)
* Last edited: Mar
9
1
0:23
2007 (
edgrif
)
* Created: Thu Feb 15 11:25:20 2007 (rds)
* CVS info: $Id: xremote_gui_test.c,v 1.
3
2007-03-0
6 08:50:35 rds
Exp $
* CVS info: $Id: xremote_gui_test.c,v 1.
4
2007-03-0
9 10:25:24 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -537,6 +537,15 @@ static void parseCB(GtkWidget *button, gpointer user_data)
return
;
}
/* Just results in the entry being removed from the hash table, the destroy func
* does the real work. */
static
gboolean
remove_cb
(
gpointer
key
,
gpointer
hash_data
,
gpointer
user_data
)
{
return
TRUE
;
}
static
gint
send_command_cb
(
gpointer
key
,
gpointer
hash_data
,
gpointer
user_data
)
{
HashEntry
entry
=
(
HashEntry
)
hash_data
;
...
...
@@ -701,6 +710,13 @@ static gboolean xml_zmap_start_cb(gpointer user_data, ZMapXMLElement zmap_elemen
suite
->
is_register_client
=
TRUE
;
else
suite
->
is_register_client
=
FALSE
;
/* When we get this it means the zmap is exitting so clean up the client
* connection. */
if
(
action
==
g_quark_from_string
(
"finalised"
))
{
g_hash_table_foreach_remove
(
suite
->
xremote_clients
,
remove_cb
,
NULL
)
;
}
}
return
FALSE
;
...
...
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