This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git


The following commit(s) were added to refs/heads/master by this push:
     new 17f07fb  Fix DAEMON-463 - compilation issue with newer compilers
17f07fb is described below

commit 17f07fb7b41092f1a98be0fb5e3613beaaa2f93f
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed May 15 10:04:16 2024 +0100

    Fix DAEMON-463 - compilation issue with newer compilers
---
 src/changes/changes.xml            | 3 +++
 src/native/unix/native/jsvc-unix.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1c91dc0..18b48c9 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -55,6 +55,9 @@
       <action dev="markt" type="fix">
         jsvc. Fix warnings when running support/buildconf.sh
       </action>
+      <action issue="DAEMON-463" dev="markt" type="fix" due-to="michaelo">
+        jsvc. Fix compilation issue with newer compilers.
+      </action>
       <!-- Add -->
       <action type="add" dev="markt">
         Procrun. Add support for hybrid CRT builds.
diff --git a/src/native/unix/native/jsvc-unix.c 
b/src/native/unix/native/jsvc-unix.c
index e331a0f..187e404 100644
--- a/src/native/unix/native/jsvc-unix.c
+++ b/src/native/unix/native/jsvc-unix.c
@@ -1308,7 +1308,7 @@ static int run_controller(arg_data *args, home_data 
*data, uid_t uid, gid_t gid)
      * These will be replaced in the child process.
      */
     memset(&act, '\0', sizeof(act));
-    act.sa_handler = controller;
+    act.sa_sigaction = controller;
     sigemptyset(&act.sa_mask);
     act.sa_flags = SA_RESTART | SA_NOCLDSTOP | SA_SIGINFO;
 

Reply via email to