Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
044e082c
Commit
044e082c
authored
Sep 22, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
Sep 22, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set close on exec() flag at times when we leave /dev/dsp and
/dev/sequencer open.
parent
b409cf62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
audio.c
dlls/winmm/wineoss/audio.c
+2
-1
midi.c
dlls/winmm/wineoss/midi.c
+1
-0
No files found.
dlls/winmm/wineoss/audio.c
View file @
044e082c
...
@@ -712,7 +712,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
...
@@ -712,7 +712,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
WARN
(
"can't open (%s)!
\n
"
,
strerror
(
errno
));
WARN
(
"can't open (%s)!
\n
"
,
strerror
(
errno
));
return
MMSYSERR_ALLOCATED
;
return
MMSYSERR_ALLOCATED
;
}
}
fcntl
(
audio
,
F_SETFD
,
1
);
/* set close on exec flag */
wwo
->
unixdev
=
audio
;
wwo
->
unixdev
=
audio
;
wwo
->
wFlags
=
HIWORD
(
dwFlags
&
CALLBACK_TYPEMASK
);
wwo
->
wFlags
=
HIWORD
(
dwFlags
&
CALLBACK_TYPEMASK
);
...
@@ -1736,6 +1736,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
...
@@ -1736,6 +1736,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
WARN
(
"can't open (%s)!
\n
"
,
strerror
(
errno
));
WARN
(
"can't open (%s)!
\n
"
,
strerror
(
errno
));
return
MMSYSERR_ALLOCATED
;
return
MMSYSERR_ALLOCATED
;
}
}
fcntl
(
audio
,
F_SETFD
,
1
);
/* set close on exec flag */
wwi
=
&
WInDev
[
wDevID
];
wwi
=
&
WInDev
[
wDevID
];
if
(
wwi
->
lpQueuePtr
)
{
if
(
wwi
->
lpQueuePtr
)
{
...
...
dlls/winmm/wineoss/midi.c
View file @
044e082c
...
@@ -402,6 +402,7 @@ static int midiOpenSeq(void)
...
@@ -402,6 +402,7 @@ static int midiOpenSeq(void)
midiSeqFD
=
-
1
;
midiSeqFD
=
-
1
;
return
-
1
;
return
-
1
;
}
}
fcntl
(
midiSeqFD
,
F_SETFD
,
1
);
/* set close on exec flag */
ioctl
(
midiSeqFD
,
SNDCTL_SEQ_RESET
);
ioctl
(
midiSeqFD
,
SNDCTL_SEQ_RESET
);
}
}
numOpenMidiSeq
++
;
numOpenMidiSeq
++
;
...
...
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