The UNIX and Linux Forums
>
Top Forums
>
High Level Programming
Can a child process return a specific value to a parent process ?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Can a child process return a specific value to a parent process ?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
04-07-2008
Ametis1970
Registered User
Join Date: Mar 2008
Posts: 4
Can a child process return a specific value to a parent process ?
Hello everybody !
I have two C source file: child.c and parent.c.
child.c looks like that:
Code:
int main() {
...
return 15647
}
parent.c calls child using fork()-exec() or posix_spawn().
How can I get in parent the return code from child (here value is 15647) without using interprocess communication (pipe, shared memory, ...) ?
Is there any way to do that without IPC ?
Thank you !
Ametis1970
View Public Profile
Find all posts by Ametis1970
Find Ametis1970's past nominations received
Find Ametis1970's present nominations given