Return-Path: william@bourbon.usc.edu Delivery-Date: Sun Sep 7 08:05:45 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m87F5jRN007594 for ; Sun, 7 Sep 2008 08:05:45 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m87F4Vo7011950 for ; Sun, 7 Sep 2008 08:04:31 -0700 Message-Id: <200809071504.m87F4Vo7011950@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: CS551 about software interrupt Date: Sun, 07 Sep 2008 08:04:31 -0700 From: Bill Cheng Someone wrote: > I use signal(SIGCHLD, my_handler) to catch child's status. > > However once server got SIGCHLD signal, server suddenly stuck and cannot > continue recv. client request. > > if I disable SIGCHLD signal, everything works fine. but I cannot catch > child's status, either.... > > I try to put "return" in my_handler(), but still not work. > > could you give some advices? Have you tried the code in the two links around the following page of the spec? http://merlot.usc.edu/cs551-f08/projects/warmup1.html#sigchld -- Bill Cheng // bill.cheng@usc.edu