Re: execve() x system()

From: Slawek (sgpat_private)
Date: Sun Jun 24 2001 - 10:56:04 PDT

  • Next message: Luciano Miguel Ferreira Rocha: "Re: execve() x system()"

    Leonardo Chiquitto Filho wrote:
    
    > I've made some tests with execve() and system()
    > and now some questions stay open here. I think
    > you can help me.
    > I wrote a more friendly interface to useradd.
    > The problem is, I call 'useradd user' with execve()
    > and then getpwname(user). At this point getpwname
    > returns me NULL. Trying with system() it works.
    > Any idea?
    
    system(3) waits for spawned process to complete, execve(2) does not
    
    use wait(2)
    
    
    --
    bye,
    Slawek
    



    This archive was generated by hypermail 2b30 : Sun Jun 24 2001 - 17:39:28 PDT