Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2001 20:14:42 +0100
From:      Gabriel Ambuehl <gabriel_ambuehl@buz.ch>
To:        questions@freebsd.org
Subject:   Signal not being delivered to process?
Message-ID:  <551060321431.20011216201442@buz.ch>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

Hello,
Is it possible, that a process somehow falls out of the signal system
since one of my apps won't ever receive SIGHUP when I send it.

Consider
void sighup(int signo)
  {
      sleep(1);
      kill(processor_pid,SIGTERM);
      for (int i=0; i<1024; i++)
            {
              shutdown(i, SHUT_RDWR);
            }
            execv(original_argv[0], original_argv);

  }

now the first time I send it a sighup, it will exit and reload like
it
should, however, the second time, it doesn't do anything. Running
truss -p on it's pid won't even show the signal being delivered the
second time I try it (it shows up the first time I do it).

Any comments are greatly appreciated.


Best regards,
 Gabriel
B

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQEVAwUBPBzkmsZa2WpymlDxAQEyXwf+J4tZ9A0fzkBxeuI3becd1e/snRbAR9Zg
YQmOOPlQF8iW8u6wt1v/z2Weqjegy5hierGEo/k3iK33BBksP9Hdy/vyrb27bydK
3+syY6Jnx1jO/n2Sh2E85OUwMO2UBE1oaOEPd9mRI59WbmZtvW7W+64+lIfnfb5y
vVbFCrOF/RyLQXKGgIA72b4BfSjWiss2vtm6hhcXvvRSffvCPxuGg6X6unjE4cIH
Ob/RXH6C4hVR1oETl/sTbVf29zXx0sLRBIThr24LjudK5e/u8YacYOw6sgzvxdr7
JUNwqjcB4+hwLEPzj/xN7J4AkOTAUWKF7S1cUzW8OGNLiqyDvlXwOA==
=gGE6
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?551060321431.20011216201442>