Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
7dc766a2
Commit
7dc766a2
authored
May 26, 2006
by
Niels Möller
Browse files
Added some trace calls.
Rev: src/unix_process.c:1.18
parent
c26d45f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/unix_process.c
View file @
7dc766a2
...
...
@@ -312,6 +312,8 @@ static void
spawn_error
(
struct
spawn_info
*
info
,
const
int
*
sync
,
int
helper_fd
,
int
helper_ref
)
{
trace
(
"unix_process: spawn_error
\n
"
);
safe_close
(
sync
[
0
]);
safe_close
(
sync
[
1
]);
safe_close
(
info
->
in
[
0
]);
safe_close
(
info
->
in
[
1
]);
...
...
@@ -381,6 +383,8 @@ spawn_child(struct spawn_info *info, const int *sync,
{
int
tty
=
-
1
;
trace
(
"unix_process: spawn_child
\n
"
);
/* We want to be a process group leader */
if
(
setsid
()
<
0
)
{
...
...
@@ -466,6 +470,8 @@ spawn_shell(struct spawn_info *info, int helper_fd,
pid_t
child
;
int
helper_ref
=
-
1
;
trace
(
"unix_process: spawn_shell
\n
"
);
if
(
!
lsh_make_pipe
(
sync
))
{
werror
(
"do_spawn: Failed to create syncronization pipe.
\n
"
);
...
...
Write
Preview
Supports
Markdown
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