Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Willers
KWSys
Commits
c2d7d285
Commit
c2d7d285
authored
20 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
ERR: Using KWSYSPE_PIPE_BUFFER_SIZE in place of separate bufferSize constant for consistency.
parent
8a6c73ab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessUNIX.c
+2
-3
2 additions, 3 deletions
ProcessUNIX.c
with
2 additions
and
3 deletions
ProcessUNIX.c
+
2
−
3
View file @
c2d7d285
...
...
@@ -1738,8 +1738,7 @@ static void kwsysProcessKill(pid_t process_id)
#else
char
fname
[
4096
];
#endif
const
int
bufferSize
=
1024
;
char
buffer
[
1025
];
/* should be buffersize +1 but fails to build on hp cc*/
char
buffer
[
KWSYSPE_PIPE_BUFFER_SIZE
+
1
];
struct
dirent
*
d
;
/* Each process has a directory in /proc whose name is the pid.
...
...
@@ -1762,7 +1761,7 @@ static void kwsysProcessKill(pid_t process_id)
FILE
*
f
=
fopen
(
fname
,
"r"
);
if
(
f
)
{
int
nread
=
fread
(
buffer
,
1
,
bufferSize
,
f
);
int
nread
=
fread
(
buffer
,
1
,
KWSYSPE_PIPE_BUFFER_SIZE
,
f
);
buffer
[
nread
]
=
'\0'
;
if
(
nread
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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