Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Equivalent command of ltrace



On Monday, December 30, 2002, at 10:01 PM, "Anirban Ghosh" <email@hidden> wrote:

Hi,

I want to find the exit status of a background process from another process.
I had earlier done this under Linux using ltrace . ltrace writes the exit
status of the background process to a file.

ltrace is not supported under Mac OS X (BSD). Is there any other system
command or system call that could do this?

You don't specify the relationship between the exiting process and the
querying process, nor any of the other details that would make it possible
to suggest one or more of the half dozen or so viable solutions to your
problem.

A short list might be:

- The wait* family of system calls.
- A pipe, socket or fifo.
- An entry in a file or directory.
- A shared memory segment or semaphore.
- A Mach message.
- An sh wrapper that writes $? into your logfile.

GI, GO.

= Mike
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



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.