Re: Warning with execvp
From: Sergei Organov (osv_at_javad.ru)
Date: 03/29/05
- Next message: Draw: "Linux Kernel Socket"
- Previous message: Sergei Organov: "Re: Warning with execvp"
- In reply to: tingashilo_at_yahoo.com: "Re: Warning with execvp"
- Next in thread: Kasper Dupont: "Re: Warning with execvp"
- Reply: Kasper Dupont: "Re: Warning with execvp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Mar 2005 16:21:55 +0400
tingashilo@yahoo.com writes:
> So trivial it's amazing I didn't see this option earlier.
Yes, but make sure not to call your routine with 'char const*'
arguments, for example, a call
SWExec("the_executable", "an_argument");
results in undefined behavior. If the_executable will try to modify its
arguments (that's an allowed action for an executable), it most probably
will result in segmentation fault.
Also, from definition of your SWExec() it's unclear how do you know how
many arguments has been passed to the routine.
-- Sergei.
- Next message: Draw: "Linux Kernel Socket"
- Previous message: Sergei Organov: "Re: Warning with execvp"
- In reply to: tingashilo_at_yahoo.com: "Re: Warning with execvp"
- Next in thread: Kasper Dupont: "Re: Warning with execvp"
- Reply: Kasper Dupont: "Re: Warning with execvp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|