Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
87805716
Commit
87805716
authored
Nov 30, 2011
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: No need to reset SIGCHLD because we're not changing it anymore.
parent
35302a64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
spawn.c
libs/port/spawn.c
+1
-9
No files found.
libs/port/spawn.c
View file @
87805716
...
...
@@ -37,7 +37,6 @@ int spawnvp(int mode, const char *cmdname, const char *const argv[])
{
#ifndef HAVE__SPAWNVP
int
pid
=
0
,
status
,
wret
;
struct
sigaction
dfl_act
,
old_act
;
if
(
mode
==
_P_OVERLAY
)
{
...
...
@@ -49,16 +48,10 @@ int spawnvp(int mode, const char *cmdname, const char *const argv[])
return
-
1
;
}
dfl_act
.
sa_handler
=
SIG_DFL
;
dfl_act
.
sa_flags
=
0
;
sigemptyset
(
&
dfl_act
.
sa_mask
);
if
(
mode
==
_P_WAIT
)
sigaction
(
SIGCHLD
,
&
dfl_act
,
&
old_act
);
pid
=
fork
();
if
(
pid
==
0
)
{
sig
action
(
SIGPIPE
,
&
dfl_act
,
NUL
L
);
sig
nal
(
SIGPIPE
,
SIG_DF
L
);
execvp
(
cmdname
,
(
char
**
)
argv
);
_exit
(
1
);
}
...
...
@@ -74,7 +67,6 @@ int spawnvp(int mode, const char *cmdname, const char *const argv[])
else
pid
=
255
;
/* abnormal exit with an abort or an interrupt */
}
if
(
mode
==
_P_WAIT
)
sigaction
(
SIGCHLD
,
&
old_act
,
NULL
);
return
pid
;
#else
/* HAVE__SPAWNVP */
return
_spawnvp
(
mode
,
cmdname
,
argv
);
...
...
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