From owner-freebsd-questions Sun Dec 16 11:13:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gamma.root-servers.ch (gamma.root-servers.ch [195.49.62.126]) by hub.freebsd.org (Postfix) with SMTP id 9256A37B41C for ; Sun, 16 Dec 2001 11:13:38 -0800 (PST) Received: (qmail 86057 invoked from network); 16 Dec 2001 19:13:33 -0000 Received: from dclient217-162-128-224.hispeed.ch (HELO athlon550) (217.162.128.224) by 0 with SMTP; 16 Dec 2001 19:13:33 -0000 Date: Sun, 16 Dec 2001 20:14:42 +0100 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.53bis) Educational Organization: BUZ Internet Services X-Priority: 3 (Normal) Message-ID: <551060321431.20011216201442@buz.ch> To: questions@freebsd.org Subject: Signal not being delivered to process? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----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