From nobody@FreeBSD.ORG Sat Mar  6 17:22:02 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 7EC7014C08; Sat,  6 Mar 1999 17:22:01 -0800 (PST)
Message-Id: <19990307012201.7EC7014C08@hub.freebsd.org>
Date: Sat,  6 Mar 1999 17:22:01 -0800 (PST)
From: hgoldste@mpcs.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: EDESTADDRREQ returnable by writev() but not documented
X-Send-Pr-Version: www-1.0

>Number:         10451
>Category:       docs
>Synopsis:       EDESTADDRREQ returnable by writev() but not documented
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar  6 17:30:00 PST 1999
>Closed-Date:    Tue May 4 13:13:16 PDT 1999
>Last-Modified:  Tue May  4 13:13:44 PDT 1999
>Originator:     howard goldstein
>Release:        3.1 stable
>Organization:
>Environment:
FreeBSD cally.south.mpcs.com 3.1-STABLE FreeBSD 3.1-STABLE #4: Sun Feb 21 20:22:01 EST 1999     root@ally.south.mpcs.com:/usr/src/sys/compile/CALLY  i386

>Description:
When writing to a unix domain datagram socket writev() that's been
prepared with connect() to fix a destination address, and the
destination subsequently goes away, writev() returns 
EDESTADDRREQ.

Assuming this behavior is correct the man page should probably
be updated.
>How-To-Repeat:
  if ( (sockfd=socket(AF_UNIX, SOCK_DGRAM, 0 )) <= 0)
    ....
    ....
  connect(sockfd, (struct sockaddr *) &serv_addr,
	    sizeof(serv_addr)

 writev(sockfd etc...)

   {do stuff}
   {sometime in here kill the other process}
 writev(sockfd...) returns -1 and EDESTADDRREQ

>Fix:
Update man page

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ghelmer 
State-Changed-When: Tue May 4 13:13:16 PDT 1999 
State-Changed-Why:  
Added error code to list of possible errors from writev(2). 

>Unformatted:
