| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The behavior you are seeing is normal for any posix system. As far as your shell example goes, that's the effects of buffering. The reader won't read until a buffer is written with an underlying write () call to the pipe. When that happens is entirely dependent on the shell. The SIGPIPE's in your C code are normal. It means you tried to read from the read end of a pipe after the writer closed it. You can set SIGPIPE to SIG_IGN and have the read() operation fail with EPIPE instead.
Note what you are trying to do will only work with one client at a time, and unless you arrange for some sort of handshaking, nothing will stop more than one client from trying and garbling your input. Normally two pipes are set up to handshake both ways between the client and the server.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden This email sent to email@hidden
| References: | |
| >Seems weird behaviors of mkfifo (From: Tian-Jian "Barabbas" Jiang <email@hidden>) | |
| >Re: Seems weird behaviors of mkfifo (From: Paul Forgey <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.