want process to kill itself then restart

Discussion in 'Perl' started by Brian, May 23, 2004.

  1. Brian

    Brian Guest

    I have a perl/tk app that I want to supply a button that will kill the
    current process and then restart the application. I was thinking that
    I could just fork off a child process at start time and then wait for
    the child to finish and then fork off another child. The quesion is
    how to go about doing this?

    Thanks,
    brian
     
    Brian, May 23, 2004
    #1
    1. Advertising

  2. Brian

    Mothra Guest

    Brian wrote:

    > I have a perl/tk app that I want to supply a button that will kill the
    > current process and then restart the application. I was thinking that
    > I could just fork off a child process at start time and then wait for
    > the child to finish and then fork off another child. The quesion is
    > how to go about doing this?
    >

    Why not just send SIGHUP to the process?
     
    Mothra, May 25, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vyacheslav Lanovets
    Replies:
    2
    Views:
    3,123
    Juan T. Llibre
    Jul 27, 2005
  2. Paolo Veronelli

    how I restart a process from itself?

    Paolo Veronelli, Oct 21, 2004, in forum: Python
    Replies:
    1
    Views:
    296
    Larry Bates
    Oct 21, 2004
  3. Replies:
    0
    Views:
    313
  4. Brian
    Replies:
    1
    Views:
    122
    John W. Krahn
    May 24, 2004
  5. Josef Moellers

    Restart Perl Application upon KDE Restart

    Josef Moellers, Jul 18, 2013, in forum: Perl Misc
    Replies:
    18
    Views:
    291
    Adam H. Kerman
    Jul 26, 2013
Loading...

Share This Page