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
d03ea001
Commit
d03ea001
authored
15 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
fix for problems running pfetch
parent
10f1c0f2
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/libpfetch/libpfetch.c
+21
-2
21 additions, 2 deletions
src/libpfetch/libpfetch.c
with
21 additions
and
2 deletions
src/libpfetch/libpfetch.c
+
21
−
2
View file @
d03ea001
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
*
*
* Exported functions: See XXXXXXXXXXXXX.h
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* HISTORY:
* Last edited:
Mar 31 15
:3
8
2009 (rds)
* Last edited:
Apr 29 21
:3
4
2009 (rds)
* Created: Fri Apr 4 14:21:42 2008 (rds)
* Created: Fri Apr 4 14:21:42 2008 (rds)
* CVS info: $Id: libpfetch.c,v 1.
9
2009-0
4
-0
1
1
0:14:30
rds Exp $
* CVS info: $Id: libpfetch.c,v 1.
10
2009-0
5
-0
8
1
5:54:08
rds Exp $
*-------------------------------------------------------------------
*-------------------------------------------------------------------
*/
*/
...
@@ -1018,6 +1018,8 @@ static void pfetch_pipe_handle_finalize(GObject *gobject)
...
@@ -1018,6 +1018,8 @@ static void pfetch_pipe_handle_finalize(GObject *gobject)
* -L/usr/totalview/linux-x86/lib -ldbfork */
* -L/usr/totalview/linux-x86/lib -ldbfork */
static
void
detach_group_for_later_kill
(
gpointer
unused
)
static
void
detach_group_for_later_kill
(
gpointer
unused
)
{
{
ChildWatchData
child_data
=
(
ChildWatchData
)
unused
;
PFetchHandlePipe
handle
;
int
setgrp_rv
=
0
;
int
setgrp_rv
=
0
;
errno
=
0
;
errno
=
0
;
...
@@ -1045,6 +1047,23 @@ static void detach_group_for_later_kill(gpointer unused)
...
@@ -1045,6 +1047,23 @@ static void detach_group_for_later_kill(gpointer unused)
}
}
errno
=
0
;
errno
=
0
;
}
}
else
{
PFetchHandleClass
handle_class
;
GQuark
detail
=
0
;
gchar
output
[
PFETCH_READ_SIZE
]
=
{
"libpfetch.c code failed"
};
guint
actual_read_uint
=
PFETCH_READ_SIZE
;
GError
*
error
=
NULL
;
handle
=
PFETCH_PIPE_HANDLE
(
child_data
->
watch_data
);
handle_class
=
PFETCH_HANDLE_GET_CLASS
(
handle
);
emit_signal
(
PFETCH_HANDLE
(
handle
),
handle_class
->
handle_signals
[
HANDLE_READER_SIGNAL
],
detail
,
&
output
[
0
],
&
actual_read_uint
,
error
);
}
return
;
return
;
}
}
...
...
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