[Clfs-commits] [CLFS Trac] #210: The way to use execvp in the multiarch_wrapper, in order to keep control over the processes.
CLFS Trac
trac at cross-lfs.org
Sun Jun 7 03:48:41 PDT 2009
#210: The way to use execvp in the multiarch_wrapper, in order to keep control
over the processes.
--------------------------+-------------------------------------------------
Reporter: manurootcpp | Owner: clfs-commits at lists.cross-lfs.org.
Type: task | Status: new
Priority: minor | Milestone: CLFS Standard 1.2.0
Component: BOOK | Version: CLFS Standard 1.2.0
Resolution: | Keywords: multiarch_wrapper
--------------------------+-------------------------------------------------
Comment (by manurootcpp):
Hello. I apologize for my late answer.
The code that i have written has the same effect, but what i wanted to
point is that
when the multiarch_wrapper(the original one) has finished to execute the
"filename" programme,
this is the end. So it is also a waste of code to write :
perror(argv[0]);
free(filename);
These lines are never executed.
You can see it with valgrind and gdb.
Also, when i have written "This is the modified multiarch_wrapper that i
propose", it was just an expression.
--
Ticket URL: <http://trac.cross-lfs.org/ticket/210#comment:3>
CLFS Trac <http://trac.cross-lfs.org>
The Cross Linux From Scratch Project.
More information about the Clfs-commits
mailing list