[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Kolla fel från close ?



Du kan få nærmere besked ved at benytte perror eller strerr. Disse skriver
i klar tekst den sidste fejl ved kald til runtime funktioner.

mvh
Jan

"Joachim Holst (QCS)" wrote:

> Hej !
>
> Sitter och skriver ett litet program som använder sockets osv.
> Har inga problem att öppna en socket och kommunicera över den.
> Däremot, så har jag problem att släcka min socket med close()
> funktionen. Tyvärr, så vet jag inte vad som blir fel. men close returnerar -1
> och borde returnera 0 om den släcker min socket som den skall.
>
> Undrar om man kan ta reda på exakt vad som hände. När jag kollar på netstat
> så ser jag att min socket försvinner som den skall.
>
> Kan inte ha att göra med att jag sätter min socket i mode O_NONBLOCKING
> med fcntl eller kan det ha att göra med att NDS:en som körs är nere för tillfället ??
>
> /Jocke!



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *