Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
7ad9701a
Commit
7ad9701a
authored
Mar 25, 2018
by
Hisham Muhammad
Browse files
strace: increase string length
parent
881fe963
Changes
1
Show whitespace changes
Inline
Side-by-side
TraceScreen.c
View file @
7ad9701a
...
@@ -101,7 +101,7 @@ bool TraceScreen_forkTracer(TraceScreen* this) {
...
@@ -101,7 +101,7 @@ bool TraceScreen_forkTracer(TraceScreen* this) {
int
ok
=
fcntl
(
this
->
fdpair
[
1
],
F_SETFL
,
O_NONBLOCK
);
int
ok
=
fcntl
(
this
->
fdpair
[
1
],
F_SETFL
,
O_NONBLOCK
);
if
(
ok
!=
-
1
)
{
if
(
ok
!=
-
1
)
{
xSnprintf
(
buffer
,
sizeof
(
buffer
),
"%d"
,
this
->
super
.
process
->
pid
);
xSnprintf
(
buffer
,
sizeof
(
buffer
),
"%d"
,
this
->
super
.
process
->
pid
);
execlp
(
"strace"
,
"strace"
,
"-p"
,
buffer
,
NULL
);
execlp
(
"strace"
,
"strace"
,
"-s"
,
"512"
,
"-p"
,
buffer
,
NULL
);
}
}
const
char
*
message
=
"Could not execute 'strace'. Please make sure it is available in your $PATH."
;
const
char
*
message
=
"Could not execute 'strace'. Please make sure it is available in your $PATH."
;
ssize_t
written
=
write
(
this
->
fdpair
[
1
],
message
,
strlen
(
message
));
ssize_t
written
=
write
(
this
->
fdpair
[
1
],
message
,
strlen
(
message
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment