fixing sigaction usage
This commit is contained in:
parent
ded88aed11
commit
5b7149ce52
@ -89,7 +89,7 @@
|
|||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
@@ -131,12 +160,20 @@
|
@@ -131,12 +160,19 @@
|
||||||
int c, i;
|
int c, i;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
struct stat stat_buf;
|
struct stat stat_buf;
|
||||||
@ -103,7 +103,6 @@
|
|||||||
+ winch_action.sa_sigaction = sigwinch_handler;
|
+ winch_action.sa_sigaction = sigwinch_handler;
|
||||||
+ sigemptyset(&winch_action.sa_mask);
|
+ sigemptyset(&winch_action.sa_mask);
|
||||||
+ winch_action.sa_flags = SA_SIGINFO;
|
+ winch_action.sa_flags = SA_SIGINFO;
|
||||||
+ winch_action.sa_restorer = NULL;
|
|
||||||
+
|
+
|
||||||
+ sigaction(SIGWINCH,&winch_action,NULL);
|
+ sigaction(SIGWINCH,&winch_action,NULL);
|
||||||
+
|
+
|
||||||
|
@ -34,7 +34,7 @@ matches for use in file editing.
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
#%patch5 -p1
|
%patch5 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
Loading…
Reference in New Issue
Block a user