Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2006 20:58:15 GMT
From:      Andreas Longwitz <longwitz@incore.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/102834: /usr/bin/mail hangs on the sigsuspend system call in popen.c
Message-ID:  <200609032058.k83KwFH8015301@www.freebsd.org>
Resent-Message-ID: <200609032100.k83L0d9D011715@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         102834
>Category:       bin
>Synopsis:       /usr/bin/mail hangs on the sigsuspend system call in popen.c
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 03 21:00:39 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Longwitz
>Release:        FreeBSD 6.1
>Organization:
Data Service Stockelsdorf, Germany
>Environment:
FreeBSD loserver.longwitz 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Tue May 23 22:16:05 CEST 2006 root@loserver.longwitz:/usr/src/sys/i386/compile/LOSERVER  i386

>Description:
Sometimes the command /usr/bin/mail -s subject mailadr hangs on the sigsuspend system call in popen.c. This happens when the function findchild() running from wait_child() is interrupted by sigchild() running findchild() again. This happens when the child started just before exits too quickly.
>How-To-Repeat:

>Fix:
In popen.c (functions free_child() and wait_child()) the line
    struct child *cp = findchild(pid);
must be moved after the 3 sigfunction-calls.

>Release-Note:
>Audit-Trail:
>Unformatted:



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