Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 64457 Details for
Bug 99920
mplayer-1.0_pre7 process still lives after closing the player window.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Catch SIGPIPE
signals.diff (text/plain), 1.68 KB, created by
Reimar Döffinger
on 2005-07-27 13:18:54 UTC
(
hide
)
Description:
Catch SIGPIPE
Filename:
MIME Type:
Creator:
Reimar Döffinger
Created:
2005-07-27 13:18:54 UTC
Size:
1.68 KB
patch
obsolete
>Index: mplayer.c >=================================================================== >RCS file: /cvsroot/mplayer/main/mplayer.c,v >retrieving revision 1.855 >retrieving revision 1.856 >diff -u -r1.855 -r1.856 >--- mplayer.c 21 Jul 2005 14:03:52 -0000 1.855 >+++ mplayer.c 22 Jul 2005 17:11:39 -0000 1.856 >@@ -19,6 +19,7 @@ > #define SIGQUIT 3 /* quit */ > #define SIGKILL 9 /* kill (cannot be caught or ignored) */ > #define SIGBUS 10 /* bus error */ >+#define SIGPIPE 13 /* broken pipe */ > extern int mp_input_win32_slave_cmd_func(int fd,char* dest,int size); > #endif > >@@ -1435,6 +1436,7 @@ > signal(SIGINT,exit_sighandler); // Interrupt from keyboard > > signal(SIGQUIT,exit_sighandler); // Quit from keyboard >+ signal(SIGPIPE,exit_sighandler); // Some window managers cause this > #ifdef ENABLE_SIGHANDLER > // fatal errors: > signal(SIGBUS,exit_sighandler); // bus error >Index: mencoder.c >=================================================================== >RCS file: /cvsroot/mplayer/main/mencoder.c,v >retrieving revision 1.298 >retrieving revision 1.300 >diff -u -r1.298 -r1.300 >--- mencoder.c 17 Jul 2005 19:40:05 -0000 1.298 >+++ mencoder.c 22 Jul 2005 17:11:39 -0000 1.300 >@@ -27,7 +27,9 @@ > #include "config.h" > > #ifdef __MINGW32__ >+#define SIGHUP 1 > #define SIGQUIT 3 >+#define SIGPIPE 13 > #endif > #ifdef WIN32 > #include <windows.h> >@@ -936,6 +938,8 @@ > signal(SIGINT,exit_sighandler); // Interrupt from keyboard > signal(SIGQUIT,exit_sighandler); // Quit from keyboard > signal(SIGTERM,exit_sighandler); // kill >+signal(SIGHUP,exit_sighandler); // broken terminal line >+signal(SIGPIPE,exit_sighandler); // broken pipe > > timer_start=GetTimerMS(); > } // if (!curfile) // if this was the first file.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 99920
: 64457