You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2010/01/05 08:32:50 UTC
svn commit: r895926 -
/commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c
Author: mturk
Date: Tue Jan 5 07:32:50 2010
New Revision: 895926
URL: http://svn.apache.org/viewvc?rev=895926&view=rev
Log:
Fix sizeof for sigaction
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c?rev=895926&r1=895925&r2=895926&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c Tue Jan 5 07:32:50 2010
@@ -155,7 +155,7 @@
for (i = 0; i < ACR_NUMSIG; i++) {
struct sigaction act;
- memset(&act, 0, sizeof(sigaction));
+ memset(&act, 0, sizeof(struct sigaction));
sigemptyset(&act.sa_mask);
act.sa_handler = SIG_DFL;
act.sa_flags = 0;
@@ -183,7 +183,7 @@
if (pthread_key_create(&seh_ctxt_key, NULL))
return ACR_GET_OS_ERROR();
- memset(&act, 0, sizeof(sigaction));
+ memset(&act, 0, sizeof(struct sigaction));
sigemptyset(&act.sa_mask);
act.sa_handler = seh_sig_handler;
act.sa_flags = 0;
@@ -250,7 +250,7 @@
errno = EINVAL;
return SIG_ERR;
}
- memset(&act, 0, sizeof(sigaction));
+ memset(&act, 0, sizeof(struct sigaction));
sigemptyset(&act.sa_mask);
act.sa_handler = func;
@@ -298,7 +298,7 @@
errno = EINVAL;
return SIG_ERR;
}
- memset(&act, 0, sizeof(sigaction));
+ memset(&act, 0, sizeof(struct sigaction));
sigemptyset(&act.sa_mask);
act.sa_handler = SIG_DFL;