Re: [PATCH] Wait for SIGCHILD signals (#540923)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.


On 03/29/2010 02:02 PM, Martin Sivak wrote:
---
  loader/init.c |   10 ++++++++++
  1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/loader/init.c b/loader/init.c
index d8f5eb5..ce4ac93 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -458,6 +458,13 @@ static void copyErrorFn (char *msg) {
      printf(msg);
  }

+void initSigChildHandler(int signum) {
+    int ret;
+    pid_t pid;
+
+    pid = wait(&ret);
+}
+
  void initSegvHandler(int signum) {
      void *array[30];
      size_t i;
@@ -553,6 +560,9 @@ int main(int argc, char **argv) {
      /* set up signal handler */
      setupBacktrace();

+    /* set up SIGCHLD handler */
+    signal(SIGCHLD, initSigChildHandler);
+
      printstr("\nGreetings.\n");

      printf("anaconda installer init version %s starting\n", VERSION);

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux