Results 1 to 2 of 2

Thread: replace existing process with the new one

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default replace existing process with the new one

    Like in topic. How to run process and then quit existing one ?
    I was trying to play around with QProcess by when I killed process that was running I was also killing the process that had been running before
    This is example what i want to do but in c:
    Qt Code:
    1. pid_t pid;
    2. if ((pid = fork()) < 0)
    3. system("...."); //the new one
    4. else if (pid != 0)
    5. exit (0);
    6.  
    7. setsid();
    To copy to clipboard, switch view to plain text mode 
    Any ideas ?
    Last edited by memus; 14th August 2008 at 16:40.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.