Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 946282 Details for
Bug 1151982
lv: please stop using sigvec
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
sigvec.patch
sigvec.patch (text/plain), 2.13 KB, created by
Florian Weimer
on 2014-10-13 08:58:01 UTC
(
hide
)
Description:
sigvec.patch
Filename:
MIME Type:
Creator:
Florian Weimer
Created:
2014-10-13 08:58:01 UTC
Size:
2.13 KB
patch
obsolete
>--- ./src/configure.in.~1~ 2004-01-04 22:35:44.000000000 -0800 >+++ ./src/configure.in 2014-10-09 11:14:47.782210631 -0700 >@@ -34,7 +34,7 @@ AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys > dnl Checks for typedefs, structures, and compiler characteristics. > > dnl Checks for library functions. >-AC_CHECK_FUNCS(sigvec tgetnum setlocale) >+AC_CHECK_FUNCS(sigaction tgetnum setlocale) > AC_FUNC_GETPGRP > AC_PROG_GCC_TRADITIONAL > AC_TYPE_SIGNAL >--- ./src/console.c.~1~ 2004-01-04 23:27:46.000000000 -0800 >+++ ./src/console.c 2014-10-09 11:16:59.627943378 -0700 >@@ -158,9 +158,9 @@ private RETSIGTYPE InterruptHandler( int > { > kb_interrupted = TRUE; > >-#ifndef HAVE_SIGVEC >+#ifndef HAVE_SIGACTION > signal( SIGINT, InterruptHandler ); >-#endif /* HAVE_SIGVEC */ >+#endif /* HAVE_SIGACTION */ > } > > public void ConsoleEnableInterrupt() >@@ -235,9 +235,9 @@ private RETSIGTYPE WindowChangeHandler( > > ConsoleGetWindowSize(); > >-#ifndef HAVE_SIGVEC >+#ifndef HAVE_SIGACTION > signal( SIGWINCH, WindowChangeHandler ); >-#endif /* HAVE_SIGVEC */ >+#endif /* HAVE_SIGACTION */ > } > #endif /* UNIX */ > >@@ -388,24 +388,24 @@ public void ConsoleSetUp() > signal( SIGINT, InterruptIgnoreHandler ); > #endif /* MSDOS */ > >-#ifdef HAVE_SIGVEC >- struct sigvec sigVec; >+#ifdef HAVE_SIGACTION >+ struct sigaction sa; > >- sigVec.sv_handler = WindowChangeHandler; >- sigVec.sv_mask = sigmask( SIGWINCH ); >- sigVec.sv_flags = SV_INTERRUPT; >- sigvec( SIGWINCH, &sigVec, NULL ); >- >- sigVec.sv_handler = InterruptHandler; >- sigVec.sv_mask = sigmask( SIGINT ); >- sigVec.sv_flags = SV_INTERRUPT; >- sigvec( SIGINT, &sigVec, NULL ); >+ sa.sa_handler = WindowChangeHandler; >+ sigemptyset( &sa.sa_mask ); >+ sa.sa_flags = 0; /* No SA_RESTART means interrupt syscalls. */ >+ sigaction( SIGWINCH, &sa, NULL ); >+ >+ sa.sa_handler = InterruptHandler; >+ sigemptyset( &sa.sa_mask ); >+ sa.sa_flags = 0; /* No SA_RESTART means interrupt syscalls. */ >+ sigaction( SIGINT, &sa, NULL ); > #else > # ifdef SIGWINCH > signal( SIGWINCH, WindowChangeHandler ); > # endif > signal( SIGINT, InterruptHandler ); >-#endif /* HAVE_SIGVEC */ >+#endif /* HAVE_SIGACTION */ > > #ifdef UNIX > #ifdef HAVE_TERMIOS_H
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 1151982
: 946282