Re: ELDK glibc fcntl(socketFd,F_SETFL, flags) causes Seg Fault

2 messages, 2 authors, 2007-02-05 · open the first message on its own page

Re: ELDK glibc fcntl(socketFd,F_SETFL, flags) causes Seg Fault

From: Wolfgang Denk <hidden>
Date: 2007-02-02 07:30:20

In message [off-list ref] you wrote:
My application Seg Faults when I try to set flags for my socket fd.

First, I get the fd by calling socket():
fd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);

Then I try getting the fd flags:
fcntl(fd, F_GETFL, flags)
Provide some working / crashing test code, i. e. a complete C program
with declarations etc.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
There's an old story about the person who wished his computer were as
easy to use as his telephone. That wish has come  true,  since  I  no
longer know how to use my telephone.

Re: ELDK glibc fcntl(socketFd, F_SETFL, flags) causes Seg Fault

From: Daniel Ng <hidden>
Date: 2007-02-05 03:11:50

Thanks for your help everyone, I figured it out.

The cause of the problem seems to be unrelated to the F_SETFL- it just happened 
to seg fault at that point all the time.

Cheers,
Daniel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help