• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MacOS X error: some puts() data never sees output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacOS X error: some puts() data never sees output


  • Subject: Re: MacOS X error: some puts() data never sees output
  • From: "Steven M.Palm" <email@hidden>
  • Date: Mon, 10 Mar 2003 18:05:36 -0600

I don't want to PURGE the data, I want to force it to be sent out. From my understanding of fpurge, if buffering is the issue and I call that after a write, I'll guarantee that I'll never see the data.

On Monday, March 10, 2003, at 05:39 PM, Prachi Gauriar wrote:

fflush has never worked in my experience. Try fpurge.

On Monday, March 10, 2003, at 04:54 PM, Steven M.Palm wrote:

Thanks to those who suggested the fflush calls, but I've already tried them. The output just never makes it.

The process getting forked is a network responder type application, and it keeps functioning. It almost seems as though there is a phantom process out there handling the requests, but obviously not tied via pipes to the process I spawn via NSTask. However, I can never find one despite intensive digging around. Also, the spawned process should realize that the network port would be in-use when it's tried to be respawned (assuming there was a phantom), but I never see that problem either.

only thing that comes to mind immediately is that you might
want to do a fflush on standard out . . .

-----------------------
- Steven M. Palm
- Ham Radio Call: N9YTY
- Attempts to make thine own star shine shall lead thee into darkness.
-----------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Int Val of Hex From NSData
  • Next by Date: Re: Code for parsing Objective-C files?
  • Previous by thread: Re: MacOS X error: some puts() data never sees output
  • Next by thread: Re: cocoa-dev digest, Vol 2 #2043 - 16 msgs
  • Index(es):
    • Date
    • Thread