fixing sigaction usage

This commit is contained in:
Neil Horman 2004-11-23 00:57:35 +00:00
parent ded88aed11
commit 5b7149ce52
2 changed files with 2 additions and 3 deletions

View File

@ -89,7 +89,7 @@
int
main(int argc, char **argv)
{
@@ -131,12 +160,20 @@
@@ -131,12 +160,19 @@
int c, i;
pid_t pid;
struct stat stat_buf;
@ -103,7 +103,6 @@
+ winch_action.sa_sigaction = sigwinch_handler;
+ sigemptyset(&winch_action.sa_mask);
+ winch_action.sa_flags = SA_SIGINFO;
+ winch_action.sa_restorer = NULL;
+
+ sigaction(SIGWINCH,&winch_action,NULL);
+

View File

@ -34,7 +34,7 @@ matches for use in file editing.
%patch2 -p1
%patch3 -p1
%patch4 -p1
#%patch5 -p1
%patch5 -p1
%build
%configure